Skip to content

Commit 4a0564b

Browse files
author
autoruff
committed
fixup: different-update Python code fixed using ruff
1 parent 87a580c commit 4a0564b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugwise/helper.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -805,9 +805,7 @@ def _match_and_rank_thermostats(self) -> dict[str, ThermoLoc]:
805805
"thermostatic_radiator_valve": 1,
806806
}
807807
for location_id, location in self._loc_data.items():
808-
location.update(
809-
{"primary": [], "primary_prio": 0, "secondary": []}
810-
)
808+
location.update({"primary": [], "primary_prio": 0, "secondary": []})
811809
for entity_id, entity in self.gw_entities.items():
812810
self._rank_thermostat(
813811
entity_id, entity, location_id, location, thermo_matching
@@ -831,7 +829,9 @@ def _rank_thermostat(
831829
# Pre-elect new primary
832830
if thermo_matching[appl_class] == location["primary_prio"]:
833831
location["primary"].append(entity_id)
834-
elif (thermo_rank := thermo_matching[appl_class]) > location["primary_prio"]:
832+
elif (thermo_rank := thermo_matching[appl_class]) > location[
833+
"primary_prio"
834+
]:
835835
location["primary_prio"] = thermo_rank
836836
# Demote former primary
837837
if tl_primary := location["primary"]:

0 commit comments

Comments
 (0)