From 998e63df61c184d6fc7336e134e372531ec9a826 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 22 Jun 2022 09:54:35 +0200 Subject: [PATCH] Fix Plugwise migration error (#73812) --- homeassistant/components/plugwise/gateway.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/plugwise/gateway.py b/homeassistant/components/plugwise/gateway.py index 7eb2b1371d5..afa7451021e 100644 --- a/homeassistant/components/plugwise/gateway.py +++ b/homeassistant/components/plugwise/gateway.py @@ -113,7 +113,7 @@ def migrate_sensor_entities( # Migrating opentherm_outdoor_temperature to opentherm_outdoor_air_temperature sensor for device_id, device in coordinator.data.devices.items(): - if device["dev_class"] != "heater_central": + if device.get("dev_class") != "heater_central": continue old_unique_id = f"{device_id}-outdoor_temperature"