1
mirror of https://github.com/home-assistant/core synced 2024-08-06 09:34:49 +02:00

Fix Plugwise migration error (#73812)

This commit is contained in:
Franck Nijhof 2022-06-22 09:54:35 +02:00 committed by GitHub
parent 39a00ffe09
commit 998e63df61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"