Skip to content

Commit 995d577

Browse files
committed
Implement _get_groups() enhancement as suggested
1 parent 6a4d25a commit 995d577

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugwise/common.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@ def _get_groups(self) -> None:
230230
"vendor": "Plugwise",
231231
}
232232
self._count += 5
233+
elif group_id in self._existing_groups:
234+
# Group existed but now has no valid members -> remove
235+
self._new_groups.remove(group_id)
233236

234237
removed = list(set(self._existing_groups) - set(self._new_groups))
235238
if self._existing_groups and removed:

0 commit comments

Comments
 (0)