We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71b36c6 commit 693478bCopy full SHA for 693478b
1 file changed
plugwise_usb/nodes/helpers/pulses.py
@@ -304,6 +304,7 @@ def _update_rollover(self) -> None:
304
):
305
# Unable to determine rollover
306
return
307
+
308
if self._pulses_timestamp > self._next_log_consumption_timestamp:
309
self._rollover_consumption = True
310
_LOGGER.debug(
@@ -336,6 +337,10 @@ def _update_rollover(self) -> None:
336
337
338
339
340
341
+ if not self._log_production:
342
+ return
343
344
if self._pulses_timestamp > self._next_log_production_timestamp:
345
self._rollover_production = True
346
0 commit comments