Skip to content

Commit 320b6da

Browse files
committed
Add comment on log_time_stamp changes
1 parent 3b38975 commit 320b6da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugwise_usb/nodes/helpers/pulses.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,8 @@ def _update_log_references(self, address: int, slot: int) -> None:
768768
return
769769

770770
log_time_stamp = self._logs[address][slot].timestamp
771+
# Sync log_time_stamp with the device pulsecounter reset-time
772+
# This syncs the daily reset of energy counters with the corresponding device pulsecounter reset
771773
if (is_consumption := self._logs[address][slot].is_consumption):
772774
if self._cons_last_hourly_reset is not None:
773775
log_time_stamp = log_time_stamp + timedelta(

0 commit comments

Comments
 (0)