mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Correct inst method names in system info, add Docker version (#36360)
This commit is contained in:
parent
a3865fb383
commit
0629b30ade
@ -36,11 +36,9 @@ async def async_get_system_info(hass: HomeAssistantType) -> Dict:
|
|||||||
|
|
||||||
# Determine installation type on current data
|
# Determine installation type on current data
|
||||||
if info_object["docker"]:
|
if info_object["docker"]:
|
||||||
info_object["installation_type"] = "Home Assistant Core on Docker"
|
info_object["installation_type"] = "Home Assistant Container"
|
||||||
elif is_virtual_env():
|
elif is_virtual_env():
|
||||||
info_object[
|
info_object["installation_type"] = "Home Assistant Core"
|
||||||
"installation_type"
|
|
||||||
] = "Home Assistant Core in a Python Virtual Environment"
|
|
||||||
|
|
||||||
# Enrich with Supervisor information
|
# Enrich with Supervisor information
|
||||||
if hass.components.hassio.is_hassio():
|
if hass.components.hassio.is_hassio():
|
||||||
@ -50,6 +48,7 @@ async def async_get_system_info(hass: HomeAssistantType) -> Dict:
|
|||||||
info_object["supervisor"] = info.get("supervisor")
|
info_object["supervisor"] = info.get("supervisor")
|
||||||
info_object["host_os"] = host.get("operating_system")
|
info_object["host_os"] = host.get("operating_system")
|
||||||
info_object["chassis"] = host.get("chassis")
|
info_object["chassis"] = host.get("chassis")
|
||||||
|
info_object["docker_version"] = info.get("docker")
|
||||||
|
|
||||||
if info.get("hassos") is not None:
|
if info.get("hassos") is not None:
|
||||||
info_object["installation_type"] = "Home Assistant"
|
info_object["installation_type"] = "Home Assistant"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user