Skip to content

Commit fa3adb0

Browse files
committed
Formatting, remove wrong guarding(?)
1 parent 9e8b506 commit fa3adb0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugwise_usb/nodes/helpers/pulses.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ def _collect_pulses_from_logs(
238238
return None
239239
if from_timestamp > self._last_log_production_timestamp:
240240
return 0
241+
241242
missing_logs = self._logs_missing(from_timestamp)
242243
if missing_logs is None or missing_logs:
243244
_LOGGER.debug(
@@ -328,6 +329,7 @@ def _update_rollover(self) -> None:
328329

329330
if not self._log_production:
330331
return
332+
331333
if (
332334
self._last_log_production_timestamp is None
333335
or self._next_log_production_timestamp is None
@@ -519,6 +521,7 @@ def _update_log_interval(self) -> None:
519521
self._log_production,
520522
)
521523
return
524+
522525
last_cons_address, last_cons_slot = self._last_log_reference(
523526
is_consumption=True
524527
)
@@ -538,9 +541,6 @@ def _update_log_interval(self) -> None:
538541
)
539542
break
540543

541-
if not self._log_production:
542-
return
543-
544544
address, slot = calc_log_address(address, slot, -1)
545545

546546
if (

0 commit comments

Comments
 (0)