Prefix versions in system health (#44921)
* Prefix versions in system health * Adjust test * Update homeassistant/components/hassio/strings.jsonpull/44957/head
parent
58195c64b7
commit
d99bc99d9b
|
@ -43,7 +43,7 @@ async def system_health_info(hass: HomeAssistant):
|
|||
information = {
|
||||
"host_os": host_info.get("operating_system"),
|
||||
"update_channel": info.get("channel"),
|
||||
"supervisor_version": info.get("supervisor"),
|
||||
"supervisor_version": f"supervisor-{info.get('supervisor')}",
|
||||
"docker_version": info.get("docker"),
|
||||
"disk_total": f"{host_info.get('disk_total')} GB",
|
||||
"disk_used": f"{host_info.get('disk_used')} GB",
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
"host_os": "Host Operating System",
|
||||
"installed_addons": "Installed Add-ons",
|
||||
"supervisor_api": "Supervisor API",
|
||||
"supervisor_version": "Supervisor Version",
|
||||
"supervisor_version": "Version",
|
||||
"supported": "Supported",
|
||||
"update_channel": "Update Channel",
|
||||
"version_api": "Version API"
|
||||
}
|
||||
},
|
||||
"title": "Hass.io"
|
||||
"title": "Home Assistant Supervisor"
|
||||
}
|
|
@ -17,7 +17,7 @@ async def system_health_info(hass):
|
|||
info = await system_info.async_get_system_info(hass)
|
||||
|
||||
return {
|
||||
"version": info.get("version"),
|
||||
"version": f"core-{info.get('version')}",
|
||||
"installation_type": info.get("installation_type"),
|
||||
"dev": info.get("dev"),
|
||||
"hassio": info.get("hassio"),
|
||||
|
|
|
@ -60,7 +60,7 @@ async def test_hassio_system_health(hass, aioclient_mock):
|
|||
"host_os": "Home Assistant OS 5.9",
|
||||
"installed_addons": "Awesome Addon (1.0.0)",
|
||||
"supervisor_api": "ok",
|
||||
"supervisor_version": "2020.11.1",
|
||||
"supervisor_version": "supervisor-2020.11.1",
|
||||
"supported": True,
|
||||
"update_channel": "stable",
|
||||
"version_api": "ok",
|
||||
|
|
Loading…
Reference in New Issue