Skip to content

Commit c9702bf

Browse files
committed
Use THERMO_MATCHING constant
1 parent 762d16f commit c9702bf

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

plugwise/helper.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -742,17 +742,9 @@ def _scan_thermostats(self) -> None:
742742
the result to update the device_class of secondary thermostats.
743743
"""
744744
self._thermo_locs = self._match_locations()
745-
746-
thermo_matching: dict[str, int] = {
747-
"thermostat": 2,
748-
"zone_thermometer": 2,
749-
"zone_thermostat": 2,
750-
"thermostatic_radiator_valve": 1,
751-
}
752-
753745
for loc_id in self._thermo_locs:
754746
for entity_id, entity in self.gw_entities.items():
755-
self._rank_thermostat(thermo_matching, loc_id, entity_id, entity)
747+
self._rank_thermostat(THERMO_MATCHING, loc_id, entity_id, entity)
756748

757749
for loc_id, loc_data in self._thermo_locs.items():
758750
if loc_data["primary_prio"] != 0:

0 commit comments

Comments
 (0)