Skip to content

Commit d4ee415

Browse files
committed
Add more _update_rollover() debug logging
1 parent 96eba11 commit d4ee415

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

plugwise_usb/nodes/helpers/pulses.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,14 @@ def _detect_rollover(
359359
if not is_consumption:
360360
direction = "production"
361361

362+
_LOGGER.debug(
363+
"_update_rollover | %s | %s pulses_timestamp=%s | last_log_timestamp=%s | next_log_timestamp=%s",
364+
self._mac,
365+
direction,
366+
self._pulses_timestamp,
367+
last_log_timestamp,
368+
next_log_timestamp,
369+
)
362370
if self._pulses_timestamp > next_log_timestamp:
363371
_LOGGER.debug(
364372
"_update_rollover | %s | set %s rollover => pulses newer",

0 commit comments

Comments
 (0)