Skip to content

Commit 32a527e

Browse files
committed
Production pulses are negative
1 parent a004df6 commit 32a527e

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
@@ -270,7 +270,7 @@ def update_pulse_counter(
270270
self._rollover_consumption = True
271271
if (
272272
self._pulses_production is not None
273-
and self._pulses_production > pulses_produced
273+
and self._pulses_production < pulses_produced
274274
):
275275
self._rollover_production = True
276276
self._pulses_consumption = pulses_consumed

0 commit comments

Comments
 (0)