Remove more info links for hassio system health (#71286)

pull/71293/head
Joakim Sørensen 2022-05-04 15:47:24 +02:00 committed by GitHub
parent 309d8d70b1
commit 03ab9d07a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 6 deletions

View File

@ -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(

View File

@ -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",
}