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