Skip to content

Commit dc5fb7a

Browse files
committed
Also adapt _set_groupswitch_member_state()
1 parent e5e09cc commit dc5fb7a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

plugwise/smile.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -484,9 +484,7 @@ async def _set_groupswitch_member_state(
484484
requested_state = state == STATE_ON
485485
switched = 0
486486
for member in members:
487-
locator = f'appliance[@id="{member}"]/{switch.actuator}/{switch.func_type}'
488-
switch_id = self._domain_objects.find(locator).get("id")
489-
uri = f"{APPLIANCES};id={member}/{switch.device};id={switch_id}"
487+
uri = f"{APPLIANCES};id={member}/{switch.device}"
490488
lock_blocked = self.gw_entities[member]["switches"].get("lock")
491489
# Assume Plugs under Plugwise control are not part of a group
492490
if lock_blocked is not None and not lock_blocked:

0 commit comments

Comments
 (0)