We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8cdf35 commit ba96e72Copy full SHA for ba96e72
plugwise_usb/network/__init__.py
@@ -544,6 +544,12 @@ async def allow_join_requests(self, state: bool) -> None:
544
545
async def energy_reset_request(self, mac: str) -> None:
546
"""Send an energy-reset to a Node."""
547
+ if self._nodes[mac].node_info.node_type.value not in (1, 2, 9):
548
+ raise NodeError(
549
+ "Energy-resetting not supported for %s",
550
+ self._nodes[mac].node_info.node_type.name
551
+ )
552
+
553
node_protocols = self._nodes[mac].node_protocols
554
request = CircleClockSetRequest(
555
self._controller.send,
0 commit comments