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 8efb91f commit d4cf635Copy full SHA for d4cf635
plugwise_usb/nodes/circle.py
@@ -637,7 +637,7 @@ async def set_relay(self, state: bool) -> bool:
637
f"Changing state of relay is not supported for node {self.mac}"
638
)
639
640
- if getattr(self._relay_lock, "state"):
+ if self._relay_lock.state:
641
raise NodeError("Changing state of relay failed, it is locked")
642
643
_LOGGER.debug("set_relay() start")
0 commit comments