Skip to content

Commit 74e71c0

Browse files
committed
Debug
1 parent f178adb commit 74e71c0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugwise/helper.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -805,6 +805,7 @@ def _match_and_rank_thermostats(self) -> dict[str, ThermoLoc]:
805805
"zone_thermostat": 2,
806806
"thermostatic_radiator_valve": 1,
807807
}
808+
LOGGER.debug("HOI _loc_data: %s", self._loc_data)
808809
for location_id, location_details in self._loc_data.items():
809810
for entity in self.gw_entities.values():
810811
if entity["location"] == location_id:
@@ -813,12 +814,14 @@ def _match_and_rank_thermostats(self) -> dict[str, ThermoLoc]:
813814
)
814815
matched_locations[location_id] = location_details
815816

817+
LOGGER.debug("HOI matched_locations before: %s", matched_locations)
816818
for loc_id in matched_locations:
817819
for entity_id, entity in self.gw_entities.items():
818820
self._rank_thermostat(
819821
entity_id, entity, loc_id, matched_locations, thermo_matching
820822
)
821823

824+
LOGGER.debug("HOI matched_locations after: %s", matched_locations)
822825
return matched_locations
823826

824827
def _rank_thermostat(

0 commit comments

Comments
 (0)