Remove more info links for hassio system health (#71286)
parent
309d8d70b1
commit
03ab9d07a8
|
@ -30,7 +30,6 @@ async def system_health_info(hass: HomeAssistant):
|
|||
healthy = {
|
||||
"type": "failed",
|
||||
"error": "Unhealthy",
|
||||
"more_info": "/hassio/system",
|
||||
}
|
||||
|
||||
if supervisor_info.get("supported"):
|
||||
|
@ -39,7 +38,6 @@ async def system_health_info(hass: HomeAssistant):
|
|||
supported = {
|
||||
"type": "failed",
|
||||
"error": "Unsupported",
|
||||
"more_info": "/hassio/system",
|
||||
}
|
||||
|
||||
information = {
|
||||
|
@ -63,7 +61,6 @@ async def system_health_info(hass: HomeAssistant):
|
|||
information["version_api"] = system_health.async_check_can_reach_url(
|
||||
hass,
|
||||
f"https://version.home-assistant.io/{info.get('channel')}.json",
|
||||
"/hassio/system",
|
||||
)
|
||||
|
||||
information["installed_addons"] = ", ".join(
|
||||
|
|
|
@ -98,16 +98,13 @@ async def test_hassio_system_health_with_issues(hass, aioclient_mock):
|
|||
|
||||
assert info["healthy"] == {
|
||||
"error": "Unhealthy",
|
||||
"more_info": "/hassio/system",
|
||||
"type": "failed",
|
||||
}
|
||||
assert info["supported"] == {
|
||||
"error": "Unsupported",
|
||||
"more_info": "/hassio/system",
|
||||
"type": "failed",
|
||||
}
|
||||
assert info["version_api"] == {
|
||||
"error": "unreachable",
|
||||
"more_info": "/hassio/system",
|
||||
"type": "failed",
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue