Skip to content

Commit 38810ac

Browse files
committed
HOI debug awake_duration
1 parent c3d3a3c commit 38810ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugwise_usb/nodes/sed.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,9 +383,12 @@ async def set_sleep_duration(self, minutes: int) -> bool:
383383
def awake_duration(self) -> int:
384384
"""Duration in seconds a battery powered devices is awake."""
385385
if self._new_battery_config.awake_duration is not None:
386+
_LOGGER.debug("HOI new duration")
386387
return self._new_battery_config.awake_duration
387388
if self._battery_config.awake_duration is not None:
389+
_LOGGER.debug("HOI duration")
388390
return self._battery_config.awake_duration
391+
_LOGGER.debug("HOI default duration")
389392
return SED_DEFAULT_AWAKE_DURATION
390393

391394
@property

0 commit comments

Comments
 (0)