Skip to content

Commit 306bfd0

Browse files
committed
Finish zone logic
1 parent a020c41 commit 306bfd0

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
@@ -693,7 +693,6 @@ def _get_gateway_outdoor_temp(self, entity_id: str, data: GwEntityData) -> None:
693693
locator = "./logs/point_log[type='outdoor_temperature']/period/measurement"
694694
if (found := self._home_location.find(locator)) is not None:
695695
value = format_measure(found.text, NONE)
696-
LOGGER.debug("HOI outdoor_temp = %s", value)
697696
data.update({"sensors": {"outdoor_temperature": value}})
698697
self._count += 1
699698

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

0 commit comments

Comments
 (0)