Skip to content

Commit

Permalink
Fix Plugwise migration error (#73812)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck committed Jun 22, 2022
1 parent 29f8493 commit 30383e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/plugwise/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 30383e0

Please sign in to comment.