Skip to content

Commit ad76b78

Browse files
committed
Avoid double processing
1 parent 0d97d18 commit ad76b78

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plugwise/helper.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,6 +1208,11 @@ def _power_data_peak_value(self, direct_data: DeviceData, loc: Munch) -> Munch:
12081208
# P1 legacy point_meter has no tariff_indicator
12091209
elif "point" in loc.log_type:
12101210
LOGGER.debug("HOI point_meter")
1211+
# Avoid double processing by skipping one peak-list option
1212+
if loc.peak_select == "nl_offpeak":
1213+
loc.found = False
1214+
return loc
1215+
12111216
loc.locator = (
12121217
f"./{loc.meas_list[0]}_{loc.log_type}/"
12131218
f'measurement[@directionality="{loc.meas_list[1]}"]'

0 commit comments

Comments
 (0)