Skip to content

Commit cef0b64

Browse files
committed
Update _update_rollover() docstring
1 parent 29a9252 commit cef0b64

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

plugwise_usb/nodes/helpers/pulses.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,15 @@ def update_pulse_counter(
278278
self._pulses_production = pulses_produced
279279

280280
def _update_rollover(self) -> None:
281-
"""Update rollover states. Returns True if rollover is applicable."""
281+
"""Update rollover states.
282+
283+
When the last found timestamp is outside the interval `_last_log_timestamp`
284+
to `_next_log_timestamp` the pulses should not be counted as part of the
285+
ongoing collection-interval.
286+
"""
282287
if self._log_addresses_missing is not None and self._log_addresses_missing:
283288
return
289+
284290
if (
285291
self._pulses_timestamp is None
286292
or self._last_log_consumption_timestamp is None

0 commit comments

Comments
 (0)