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 2b0bf39 commit 9246b5dCopy full SHA for 9246b5d
plugwise/smile.py
@@ -458,7 +458,9 @@ async def _set_groupswitch_member_state(
458
locator = f'appliance[@id="{member}"]/{switch.actuator}/{switch.func_type}'
459
switch_id = self._domain_objects.find(locator).attrib["id"]
460
uri = f"{APPLIANCES};id={member}/{switch.device};id={switch_id}"
461
- if not self.gw_entities[member]["switches"].get("lock"):
+ lock_blocked = self.gw_entities[member]["switches"].get("lock")
462
+ # Assume Plugs under Plugwise control are not part of a group
463
+ if lock_blocked is not None and not lock_blocked:
464
await self.call_request(uri, method="put", data=data)
465
switched += 1
466
0 commit comments