Skip to content

Commit 48da2ce

Browse files
committed
Revert removal
1 parent 06ab75e commit 48da2ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugwise_usb/nodes/helpers/pulses.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ def collected_pulses(
208208
from_timestamp,
209209
timestamp,
210210
)
211+
# Always return positive values of energy_statistics
212+
return (abs(pulses + log_pulses), timestamp)
211213

212214
delta_cons_pulses: int = 0
213215
delta_prod_pulses: int = 0
@@ -253,7 +255,6 @@ def collected_pulses(
253255
from_timestamp,
254256
timestamp,
255257
)
256-
257258
# Always return positive values of energy_statistics
258259
return (abs(pulses + log_pulses), timestamp)
259260

0 commit comments

Comments
 (0)