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 f7d4138 commit 4817673Copy full SHA for 4817673
plugwise_usb/nodes/sed.py
@@ -242,6 +242,8 @@ async def set_awake_duration(self, seconds: int) -> bool:
242
raise ValueError(
243
f"Invalid awake duration ({seconds}). It must be between 1 and 255 seconds."
244
)
245
+ if self.battery_config.awake_duration == seconds:
246
+ return False
247
248
self._battery_config = replace(
249
self._battery_config,
0 commit comments