Skip to content

Commit 493e18c

Browse files
committed
Improve-fix error messages
1 parent c771745 commit 493e18c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugwise_usb/nodes/node.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ async def set_relay(self, state: bool) -> bool:
781781
"""Change the state of the relay."""
782782
if NodeFeature.RELAY not in self._features:
783783
raise FeatureError(
784-
f"Changing relay-lock is not supported for node {self.mac}"
784+
f"Changing relay-state is not supported for node {self.mac}"
785785
)
786786
raise NotImplementedError()
787787

@@ -790,7 +790,7 @@ async def set_relay_lock(self, state: bool) -> bool:
790790
"""Change lock of the relay."""
791791
if NodeFeature.RELAY_LOCK not in self._features:
792792
raise FeatureError(
793-
f"Changing relay-lock is not supported for node {self.mac}"
793+
f"Changing relay-lock state is not supported for node {self.mac}"
794794
)
795795
raise NotImplementedError()
796796

0 commit comments

Comments
 (0)