Skip to content

Commit c4fd52b

Browse files
committed
Don't raise error when toggling a switch that is locked
1 parent dca4530 commit c4fd52b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise/smile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ async def set_switch_state(
424424
)
425425
# Don't bother switching a relay when the corresponding lock-state is true
426426
if self._domain_objects.find(locator).text == "true":
427-
raise PlugwiseError("Plugwise: the locked Relay was not switched.")
427+
return
428428

429429
await self.call_request(uri, method="put", data=data)
430430

0 commit comments

Comments
 (0)