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 d79cae3 commit 9d6962aCopy full SHA for 9d6962a
plugwise/smile.py
@@ -637,7 +637,7 @@ async def set_switch_state(
637
lock_state: str = self._appliances.find(locator).text
638
# Don't bother switching a relay when the corresponding lock-state is true
639
if lock_state == "true":
640
- return
+ raise PlugwiseException("Cannot switch a locked Relay.")
641
642
await self._request(uri, method="put", data=data)
643
0 commit comments