Skip to content

Commit a359e60

Browse files
committed
Use switch.func too in helper-function, delete print-line
1 parent 54ca4e8 commit a359e60

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugwise/smile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ async def set_groupswitch_member_state(self, members, state, switch):
510510
if self.stretch_v2:
511511
uri = f"{APPLIANCES};id={member}/{switch.device}"
512512
state = str(state)
513-
data = f"<{switch.func_type}><state>{state}</state></{switch.func_type}>"
513+
data = f"<{switch.func_type}><{switch.func}>{state}</{switch.func}></{switch.func_type}>"
514514

515515
await self.request(uri, method="put", data=data)
516516

@@ -550,7 +550,6 @@ async def set_switch_state(self, appl_id, members, model, state):
550550
f'appliance[@id="{appl_id}"]/{switch.actuator}/{switch.func_type}/lock'
551551
)
552552
lock_state = self._appliances.find(locator).text
553-
print("Lock state: ", lock_state)
554553
# Don't bother switching a relay when the corresponding lock-state is true
555554
if lock_state == "true":
556555
return False

0 commit comments

Comments
 (0)