Skip to content

Commit 3985032

Browse files
committed
Set NodeFeature.RELAY_LOCK as well.
1 parent b4159bd commit 3985032

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

plugwise_usb/nodes/circle.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,11 @@ def relay_lock(self) -> bool:
182182
return self._relay_lock
183183

184184
def set_relay_lock(self, state: bool) -> None:
185-
"""Set the state of the relay-lock."""
186-
self._relay_lock = state
185+
"""Set the state of the relay-lock."""
186+
self._relay_lock = state
187+
await self.publish_feature_update_to_subscribers(
188+
NodeFeature.RELAY_LOCK, state
189+
)
187190

188191
# endregion
189192

0 commit comments

Comments
 (0)