Skip to content

Commit 2dd3526

Browse files
committed
Finish zone logic
1 parent 8e5a2a3 commit 2dd3526

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

plugwise/helper.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,6 @@ def _get_gateway_outdoor_temp(self, entity_id: str, data: GwEntityData) -> None:
694694
locator = "./logs/point_log[type='outdoor_temperature']/period/measurement"
695695
if (found := self._home_location.find(locator)) is not None:
696696
value = format_measure(found.text, NONE)
697-
LOGGER.debug("HOI outdoor_temp = %s", value)
698697
data.update({"sensors": {"outdoor_temperature": value}})
699698
self._count += 1
700699

@@ -828,6 +827,12 @@ def _scan_thermostats(self) -> None:
828827
for location_id, location in self._loc_data.items():
829828
if location["primary_prio"] != 0:
830829
self._new_zones.append(location_id)
830+
if (
831+
location_id in self._existing_zones
832+
and self.gw_entities[location_id]["name"] == location["name"]
833+
):
834+
continue
835+
831836
self._zones[location_id] = {
832837
"dev_class": "climate",
833838
"model": "ThermoZone",

0 commit comments

Comments
 (0)