Skip to content

Commit 660f0d1

Browse files
committed
Fix logic determining _log_production
1 parent bea3cb8 commit 660f0d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugwise_usb/nodes/helpers/pulses.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,9 +514,9 @@ def _update_log_direction(
514514
if self._first_prev_log_processed and self._first_next_log_processed:
515515
# _log_production is True when 2 out of 3 consecutive slots have
516516
# the same timestamp, otherwise it is False
517-
self._log_production = (
517+
self._log_production = (
518518
next_timestamp == timestamp and prev_timestamp != timestamp
519-
) or (next_timestamp == prev_timestamp and next_timestamp != timestamp)
519+
) or (prev_timestamp == timestamp and next_timestamp != timestamp)
520520

521521
def _check_prev_production(
522522
self, address: int, slot: int, timestamp: datetime

0 commit comments

Comments
 (0)