Skip to content

Commit 2a0014d

Browse files
committed
Debug
1 parent d3b0c48 commit 2a0014d

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
@@ -803,6 +803,7 @@ def _match_and_rank_thermostats(self) -> dict[str, ThermoLoc]:
803803
"zone_thermostat": 2,
804804
"thermostatic_radiator_valve": 1,
805805
}
806+
LOGGER.debug("HOI _loc_data: %s", self._loc_data)
806807
for location_id, location_details in self._loc_data.items():
807808
for entity in self.gw_entities.values():
808809
if entity["location"] == location_id:
@@ -811,12 +812,14 @@ def _match_and_rank_thermostats(self) -> dict[str, ThermoLoc]:
811812
)
812813
matched_locations[location_id] = location_details
813814

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

822+
LOGGER.debug("HOI matched_locations after: %s", matched_locations)
820823
return matched_locations
821824

822825
def _rank_thermostat(

0 commit comments

Comments
 (0)