From 099c9c59cb40f7e1dfdd33ef60aaf679d3057e7c Mon Sep 17 00:00:00 2001 From: Martin Hjelmare Date: Wed, 3 Mar 2021 14:37:36 +0100 Subject: [PATCH] Fix Supervisor platform coordinator data lookup (#47308) --- homeassistant/components/hassio/binary_sensor.py | 2 +- homeassistant/components/hassio/sensor.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/hassio/binary_sensor.py b/homeassistant/components/hassio/binary_sensor.py index c3daaa07f28..2208f3fb580 100644 --- a/homeassistant/components/hassio/binary_sensor.py +++ b/homeassistant/components/hassio/binary_sensor.py @@ -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( diff --git a/homeassistant/components/hassio/sensor.py b/homeassistant/components/hassio/sensor.py index 857f4831587..711a2a46300 100644 --- a/homeassistant/components/hassio/sensor.py +++ b/homeassistant/components/hassio/sensor.py @@ -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) )