Prevent nonetype errors
This commit is contained in:
parent
d022c089e0
commit
1c5c167960
|
@ -34,7 +34,7 @@ async def system_health_info(hass: HomeAssistant) -> dict[str, Any]:
|
|||
info = get_info(hass) or {}
|
||||
host_info = get_host_info(hass) or {}
|
||||
supervisor_info = get_supervisor_info(hass)
|
||||
network_info = get_network_info(hass)
|
||||
network_info = get_network_info(hass) or {}
|
||||
|
||||
healthy: bool | dict[str, str]
|
||||
if supervisor_info is not None and supervisor_info.get("healthy"):
|
||||
|
|
Loading…
Reference in New Issue