We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35d51e4 commit 53348baCopy full SHA for 53348ba
plugwise_usb/nodes/helpers/counter.py
@@ -288,6 +288,12 @@ def update(
288
if self._energy_id in ENERGY_DAY_COUNTERS:
289
last_reset = last_reset.replace(hour=0, minute=0, second=0, microsecond=0)
290
# Postpone the last_reset time-changes at day-end until a device pulsecounter resets
291
+ _LOGGER.debug("energycounter_update | last reset hour=%s", last_reset.hour)
292
+ _LOGGER.debug(
293
+ "energycounter_update | pulse_counter_reset=%s, midnight_reset_passed=%s",
294
+ pulse_collection.pulse_counter_reset,
295
+ self._midnight_reset_passed,
296
+ )
297
if last_reset.hour == 0 and (
298
not pulse_collection.pulse_counter_reset
299
and not self._midnight_reset_passed
0 commit comments