Skip to content

Commit 0a7d1bb

Browse files
committed
Optimize
1 parent 7bdafd1 commit 0a7d1bb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugwise/data.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,7 @@ def check_reg_mode(self, mode: str) -> bool:
312312
def _get_anna_control_state(self, data: GwEntityData) -> None:
313313
"""Set the thermostat control_state based on the opentherm/onoff device state."""
314314
data["control_state"] = "idle"
315-
for entity_id in self.gw_entities:
316-
entity = self.gw_entities[entity_id]
315+
for entity in self.gw_entities.values():
317316
if entity["dev_class"] != "heater_central":
318317
continue
319318

0 commit comments

Comments
 (0)