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 53bbd1b commit 518ae20Copy full SHA for 518ae20
plugwise_usb/nodes/helpers/pulses.py
@@ -205,7 +205,7 @@ def collected_pulses(
205
is_consumption,
206
timestamp,
207
)
208
- return (pulses + log_pulses, timestamp)
+ return (abs(pulses + log_pulses), timestamp)
209
210
def _collect_pulses_from_logs(
211
self, from_timestamp: datetime, is_consumption: bool
@@ -243,7 +243,7 @@ def _collect_pulses_from_logs(
243
):
244
log_pulses += slot_item.pulses
245
246
- return abs(log_pulses)
+ return log_pulses
247
248
def update_pulse_counter(
249
self, pulses_consumed: int, pulses_produced: int, timestamp: datetime
0 commit comments