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 38e629e commit b47b7b6Copy full SHA for b47b7b6
plugwise_usb/network/__init__.py
@@ -573,6 +573,11 @@ async def set_energy_intervals(
573
Default: consumption = 60, production = 0.
574
For logging energy in both directions set both to 60.
575
"""
576
+ if self._nodes[mac].node_info.node_type.value not in (1, 2, 9):
577
+ raise NodeError(
578
+ "Setting energy-intervals not supported for {self._nodes[mac].node_info.node_type.name}"
579
+ )
580
+
581
# Validate input parameters
582
if consumption <= 0:
583
raise ValueError("Consumption interval must be positive")
0 commit comments