Fix Supervisor platform coordinator data lookup (#47308)

pull/47317/head
Martin Hjelmare 2021-03-03 14:37:36 +01:00 committed by GitHub
parent c192a44e87
commit 099c9c59cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ async def async_setup_entry(
HassioAddonBinarySensor(
coordinator, addon, ATTR_UPDATE_AVAILABLE, "Update Available"
)
for addon in coordinator.data.values()
for addon in coordinator.data["addons"].values()
]
if coordinator.is_hass_os:
entities.append(

View File

@ -24,7 +24,7 @@ async def async_setup_entry(
(ATTR_VERSION, "Version"),
(ATTR_VERSION_LATEST, "Newest Version"),
):
for addon in coordinator.data.values():
for addon in coordinator.data["addons"].values():
entities.append(
HassioAddonSensor(coordinator, addon, attribute_name, sensor_name)
)