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 46a5d43 commit 6e716e1Copy full SHA for 6e716e1
plugwise_usb/nodes/circle.py
@@ -641,9 +641,10 @@ async def set_relay(self, state: bool) -> bool:
641
)
642
643
if self._relay_lock.state:
644
- raise NodeError("Changing state of relay failed, it is locked")
+ _LOGGER.debug("Relay switch blocked, relay is locked")
645
+ return not state
646
- _LOGGER.debug("set_relay() start")
647
+ _LOGGER.debug("Switching relay to %s", state)
648
request = CircleRelaySwitchRequest(self._send, self._mac_in_bytes, state)
649
response = await request.send()
650
0 commit comments