Skip to content

Commit fdbc03b

Browse files
committed
Try
1 parent 5c21e36 commit fdbc03b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugwise_usb/nodes/circle.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,15 +1027,15 @@ def _calc_watts(self, pulses: int, seconds: int, nano_offset: int) -> float | No
10271027
corrected_pulses = seconds * (
10281028
(
10291029
(
1030-
((pulses_per_s + self._calibration.off_noise) ** 2)
1030+
((pulses_per_s - self._calibration.off_noise) ** 2)
10311031
* self._calibration.gain_b
10321032
)
1033-
+ (
1034-
(pulses_per_s + self._calibration.off_noise)
1033+
- (
1034+
(pulses_per_s - self._calibration.off_noise)
10351035
* self._calibration.gain_a
10361036
)
10371037
)
1038-
+ self._calibration.off_tot
1038+
- self._calibration.off_tot
10391039
)
10401040

10411041
# Fix minor miscalculations

0 commit comments

Comments
 (0)