Add more system information from Supervisor (#35560)

This commit is contained in:
Franck Nijhof authored and GitHub committed 2020-05-12 15:27:34 -07:00
1 parent 306f15723d
commit eddb5c6c3f
8 files changed
+148 -35

No files matched your search

+6 -1
View File
@@ -154,7 +154,12 @@ async def test_new_version_shows_entity_after_hour_hassio(
"""Test if binary sensor gets updated if new version is available / Hass.io."""
mock_get_uuid.return_value = MOCK_HUUID
mock_component(hass, "hassio")
hass.data["hassio_hass_version"] = "999.0"
hass.data["hassio_info"] = {"hassos": None, "homeassistant": "999.0"}
hass.data["hassio_host"] = {
"supervisor": "222",
"chassis": "vm",
"operating_system": "HassOS 4.6",
}
assert await async_setup_component(hass, updater.DOMAIN, {updater.DOMAIN: {}})