Skip to content

Commit 3d3b546

Browse files
committed
Extend update_pulse-counter logging
1 parent f60a6a1 commit 3d3b546

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

plugwise_usb/nodes/helpers/pulses.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -290,11 +290,7 @@ def update_pulse_counter(
290290
self._pulses_consumption is not None
291291
and self._pulses_consumption > pulses_consumed
292292
):
293-
_LOGGER.debug(
294-
"update_pulse_counter | consumption pulses (%s > %s) reset",
295-
self._pulses_consumption,
296-
pulses_consumed
297-
)
293+
_LOGGER.debug("update_pulse_counter | consumption pulses reset")
298294
self._cons_last_hourly_reset = timestamp
299295
_LOGGER.debug(
300296
"update_pulse_counter | consumption hourly_reset_time=%s",
@@ -326,7 +322,9 @@ def update_pulse_counter(
326322
self._rollover_production = True
327323

328324
self._pulses_consumption = pulses_consumed
325+
_LOGGER.debug("update_pulse_counter | consumption pulses=%s", self._pulses_consumption)
329326
self._pulses_production = pulses_produced
327+
_LOGGER.debug("update_pulse_counter | production pulses=%s", self._pulses_production)
330328

331329
def _update_rollover(self) -> None:
332330
"""Update rollover states.

0 commit comments

Comments
 (0)