Skip to content

Commit 01a8ec0

Browse files
committed
update_pulse_counter(): add rollover log-debug-messages
1 parent 175dc10 commit 01a8ec0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugwise_usb/nodes/helpers/pulses.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,12 +275,15 @@ def update_pulse_counter(
275275
self._pulses_consumption is not None
276276
and self._pulses_consumption > pulses_consumed
277277
):
278+
_LOGGER.debug("update_pulse_counter | rollover consumption")
278279
self._rollover_consumption = True
279280
if (
280281
self._pulses_production is not None
281282
and self._pulses_production < pulses_produced
282283
):
284+
_LOGGER.debug("update_pulse_counter | rollover production")
283285
self._rollover_production = True
286+
284287
self._pulses_consumption = pulses_consumed
285288
self._pulses_production = pulses_produced
286289

0 commit comments

Comments
 (0)