Skip to content

Commit fea476e

Browse files
committed
Fix _set_groupswitch_member_state() function as well
1 parent daa5fe9 commit fea476e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise/legacy/smile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ async def _set_groupswitch_member_state(
264264
Set the given State of the relevant Switch within a group of members.
265265
"""
266266
for member in members:
267-
uri = f"{APPLIANCES};id={member}/{switch.func_type}"
268267
data = f"<{switch.func_type}><{switch.func}>{state}</{switch.func}></{switch.func_type}>"
268+
uri = f"{APPLIANCES};id={member}/relay"
269269

270270
await self.call_request(uri, method="put", data=data)
271271

0 commit comments

Comments
 (0)