File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
plugwise_usb/nodes/helpers Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -234,6 +234,7 @@ def _collect_pulses_from_logs(
234234 return None
235235 if from_timestamp > self ._last_log_production_timestamp :
236236 return 0
237+
237238 missing_logs = self ._logs_missing (from_timestamp )
238239 if missing_logs is None or missing_logs :
239240 _LOGGER .debug (
@@ -312,6 +313,7 @@ def _update_rollover(self) -> None:
312313
313314 if not self ._log_production :
314315 return
316+
315317 if (
316318 self ._last_log_production_timestamp is None
317319 or self ._next_log_production_timestamp is None
@@ -495,6 +497,7 @@ def _update_log_interval(self) -> None:
495497 self ._log_production ,
496498 )
497499 return
500+
498501 last_cons_address , last_cons_slot = self ._last_log_reference (
499502 is_consumption = True
500503 )
@@ -513,8 +516,7 @@ def _update_log_interval(self) -> None:
513516 delta1 .total_seconds () / MINUTE_IN_SECONDS
514517 )
515518 break
516- if not self ._log_production :
517- return
519+
518520 address , slot = calc_log_address (address , slot , - 1 )
519521 if (
520522 self ._log_interval_consumption is not None
You can’t perform that action at this time.
0 commit comments