Skip to content

Commit 912cc41

Browse files
committed
Fix typo, clean up debugging
1 parent 4e84df9 commit 912cc41

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

plugwise/common.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@ def _get_groups(self) -> None:
205205
for group in self._domain_objects.findall("./group"):
206206
members: list[str] = []
207207
group_id = group.get("id")
208+
self._new_groups.append(group_id)
209+
if group_id in self._existing_groups:
210+
continue
208211
group_name = group.find("name").text
209212
group_type = group.find("type").text
210213
group_appliances = group.findall("appliances/appliance")

plugwise/helper.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,8 @@ def _get_appliances(self) -> bool:
177177
removed = list(set(self._existing_appliances) - set(self._new_appliances))
178178
if self._existing_appliances:
179179
if not removed:
180-
LOGGER.debug("HOI no new or removed appliance(s).")
181180
return False
182181
else:
183-
LOGGER.debug("HOI removed appliance(s): %s", removed)
184182
for appliance in removed:
185183
self.gw_entities.pop(appliance)
186184
return False

0 commit comments

Comments
 (0)