Skip to content

Commit ff95cbc

Browse files
committed
Fix
1 parent e272fe0 commit ff95cbc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plugwise_usb/nodes/helpers/pulses.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,8 @@ def _check_prev_production(
540540
elif self._log_production is None:
541541
self._log_production = False
542542
return prev_timestamp
543-
elif self._first_prev_log_processed:
543+
544+
if self._first_prev_log_processed:
544545
self._first_prev_log_processed = False
545546
return None
546547

@@ -567,7 +568,8 @@ def _check_next_production(
567568
elif self._log_production is None:
568569
self._log_production = False
569570
return next_timestamp
570-
elif self._first_next_log_processed:
571+
572+
if self._first_next_log_processed:
571573
self._first_next_log_processed = False
572574
return None
573575

0 commit comments

Comments
 (0)