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 145983c commit 175dc10Copy full SHA for 175dc10
plugwise_usb/nodes/helpers/pulses.py
@@ -260,7 +260,12 @@ def _collect_pulses_from_logs(
260
def update_pulse_counter(
261
self, pulses_consumed: int, pulses_produced: int, timestamp: datetime
262
) -> None:
263
- """Update pulse counter."""
+ """Update pulse counter.
264
+
265
+ Both consumption and production counters reset at the beginning of a new hour.
266
+ IDEA: should we treat this event not as a rollover but as a counter reset?
267
+ What should be the effect of this reset?
268
+ """
269
self._pulses_timestamp = timestamp
270
self._update_rollover()
271
if not (self._rollover_consumption or self._rollover_production):
0 commit comments