Skip to content

Commit e4b109d

Browse files
committed
Formatting, remove wrong guarding(?)
1 parent 622b5ca commit e4b109d

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
@@ -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

0 commit comments

Comments
 (0)