Skip to content

Commit 561bcd3

Browse files
committed
HOI debug
1 parent 8948969 commit 561bcd3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plugwise_usb/nodes/helpers/pulses.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ def _collect_pulses_from_logs(
252252
log_pulses = 0
253253
for log_item in self.logs.values():
254254
for slot_item in log_item.values():
255+
_LOGGER.debug("HOI slot_timestamp=%s | pulses=%s | is_consumption=%s", slot_item.timestamp, slot_item.pulses, slot_item.is_consumption)
255256
if (
256257
slot_item.is_consumption == is_consumption
257258
and slot_item.timestamp > from_timestamp
@@ -342,7 +343,9 @@ def _detect_rollover(
342343
is_consumption=True,
343344
) -> bool:
344345
"""Helper function for _update_rollover()."""
345-
346+
_LOGGER.debug("HOI pulses_timestamp=%s", self._pulses_timestamp)
347+
_LOGGER.debug("HOI last_log_timestamp=%s", last_log_timestamp)
348+
_LOGGER.debug("HOI next_log_timestamp=%s", next_log_timestamp)
346349
if (
347350
self._pulses_timestamp is not None
348351
and last_log_timestamp is not None

0 commit comments

Comments
 (0)