Correct inst method names in system info, add Docker version (#36360)

pull/36369/head
Franck Nijhof 2020-06-02 10:50:34 +02:00 committed by GitHub
parent a3865fb383
commit 0629b30ade
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -36,11 +36,9 @@ async def async_get_system_info(hass: HomeAssistantType) -> Dict:
# Determine installation type on current data
if info_object["docker"]:
info_object["installation_type"] = "Home Assistant Core on Docker"
info_object["installation_type"] = "Home Assistant Container"
elif is_virtual_env():
info_object[
"installation_type"
] = "Home Assistant Core in a Python Virtual Environment"
info_object["installation_type"] = "Home Assistant Core"
# Enrich with Supervisor information
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["host_os"] = host.get("operating_system")
info_object["chassis"] = host.get("chassis")
info_object["docker_version"] = info.get("docker")
if info.get("hassos") is not None:
info_object["installation_type"] = "Home Assistant"