We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f67ea5 commit 3256e85Copy full SHA for 3256e85
plugwise/common.py
@@ -235,8 +235,8 @@ def _get_groups(self) -> None:
235
236
def _add_member(self, element: etree.Element, members: list[str]) -> None:
237
"""Check and add member to list."""
238
- if element.attrib["id"] in self.gw_entities:
239
- members.append(item.attrib["id"])
+ if (member_id := element.attrib["id"]) in self.gw_entities:
+ members.append(member_id)
240
241
def _get_lock_state(
242
self, xml: etree.Element, data: GwEntityData, stretch_v2: bool = False
0 commit comments