Fix Plugwise migration error (#73812)

pull/73821/head
Franck Nijhof 2022-06-22 09:54:35 +02:00
parent 29f8493a06
commit 30383e0102
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ def migrate_sensor_entities(
# Migrating opentherm_outdoor_temperature to opentherm_outdoor_air_temperature sensor # Migrating opentherm_outdoor_temperature to opentherm_outdoor_air_temperature sensor
for device_id, device in coordinator.data.devices.items(): for device_id, device in coordinator.data.devices.items():
if device["dev_class"] != "heater_central": if device.get("dev_class") != "heater_central":
continue continue
old_unique_id = f"{device_id}-outdoor_temperature" old_unique_id = f"{device_id}-outdoor_temperature"