Skip to content

Commit ef65066

Browse files
committed
Update logging positions
1 parent 8a8dcfd commit ef65066

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

plugwise_usb/nodes/helpers/pulses.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -267,27 +267,27 @@ def update_pulse_counter(
267267
if not (self._rollover_consumption or self._rollover_production):
268268
# No rollover based on time, check rollover based on counter reset
269269
# Required for special cases like nodes which have been power off for several days
270-
_LOGGER.debug(
271-
"_rollover_consumption | self._pulses_consumption=%s | pulses_consumed=%s",
272-
self._pulses_consumption,
273-
pulses_consumed,
274-
)
275270
if (
276271
self._pulses_consumption is not None
277272
and self._pulses_consumption > pulses_consumed
278273
):
279274
self._rollover_consumption = True
275+
_LOGGER.debug(
276+
"_rollover_consumption | self._pulses_consumption=%s > pulses_consumed=%s",
277+
self._pulses_consumption,
278+
pulses_consumed,
279+
)
280280

281-
_LOGGER.debug(
282-
"_rollover_production | self._pulses_production=%s | pulses_produced=%s",
283-
self._pulses_production,
284-
pulses_produced,
285-
)
286281
if (
287282
self._pulses_production is not None
288283
and self._pulses_production < pulses_produced
289284
):
290285
self._rollover_production = True
286+
_LOGGER.debug(
287+
"_rollover_production | self._pulses_production=%s < pulses_produced=%s",
288+
self._pulses_production,
289+
pulses_produced,
290+
)
291291

292292
self._pulses_consumption = pulses_consumed
293293
self._pulses_production = pulses_produced

0 commit comments

Comments
 (0)