Fix Supervisor platform coordinator data lookup (#47308)
parent
c192a44e87
commit
099c9c59cb
|
@ -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(
|
||||
|
|
|
@ -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)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue