Skip to content

Commit aaa1c73

Browse files
committed
_detect_rollover(): full coverage by using <=
1 parent c10bf4b commit aaa1c73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise_usb/nodes/helpers/pulses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ def _detect_rollover(
381381
)
382382
return True
383383

384-
if last_log_timestamp < self._pulses_timestamp < next_log_timestamp:
384+
if last_log_timestamp <= self._pulses_timestamp <= next_log_timestamp:
385385
_LOGGER.debug(
386386
"_update_rollover | %s | reset %s rollover",
387387
self._mac,

0 commit comments

Comments
 (0)