Prevent nonetype errors

This commit is contained in:
Mike Degatano 2024-04-16 16:38:18 -04:00
parent d022c089e0
commit 1c5c167960
1 changed files with 1 additions and 1 deletions

View File

@ -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"):