Skip to content

Commit 9ead2f5

Browse files
committed
Pulses_production/_produced are negative
1 parent 142b7f6 commit 9ead2f5

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
@@ -273,7 +273,7 @@ def update_pulse_counter(
273273
self._rollover_consumption = True
274274
if (
275275
self._pulses_production is not None
276-
and self._pulses_production > pulses_produced
276+
and self._pulses_production < pulses_produced
277277
):
278278
self._rollover_production = True
279279
self._pulses_consumption = pulses_consumed

0 commit comments

Comments
 (0)