Add type annotations to some hassio API (#83103)

* Add type annotations to some hassio API

* Adjust callers
This commit is contained in:
Erik Montnemery 2022-12-02 11:18:49 +01:00 committed by GitHub
parent faea29a268
commit 4edebacba5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 15 additions and 15 deletions

View file

@ -22,8 +22,8 @@ def async_register(
async def system_health_info(hass: HomeAssistant):
"""Get info for the info page."""
info = get_info(hass)
host_info = get_host_info(hass)
info = get_info(hass) or {}
host_info = get_host_info(hass) or {}
supervisor_info = get_supervisor_info(hass)
healthy: bool | dict[str, str]
@ -57,7 +57,7 @@ async def system_health_info(hass: HomeAssistant):
}
if info.get("hassos") is not None:
os_info = get_os_info(hass)
os_info = get_os_info(hass) or {}
information["board"] = os_info.get("board")
information["supervisor_api"] = system_health.async_check_can_reach_url(