Skip to content

Commit 7437e04

Browse files
committed
Production pulses are negative
1 parent 944e0e3 commit 7437e04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise_usb/nodes/helpers/pulses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def update_pulse_counter(
259259
self._rollover_consumption = True
260260
if (
261261
self._pulses_production is not None
262-
and self._pulses_production > pulses_produced
262+
and self._pulses_production < pulses_produced
263263
):
264264
self._rollover_production = True
265265
self._pulses_consumption = pulses_consumed

0 commit comments

Comments
 (0)