Skip to content

Commit 2bf8f80

Browse files
committed
Improve
1 parent 15030ea commit 2bf8f80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ def _power_data_peak_value(self, direct_data: DeviceData, loc: Munch) -> Munch:
12261226
peak = "off_peak"
12271227
log_found = loc.log_type.split("_")[0]
12281228
loc.key_string = f"{loc.measurement}_{peak}_{log_found}"
1229-
if "gas" in loc.measurement or "point_meter" in loc.log_type:
1229+
if "gas" in loc.measurement or loc.log_type == "point_meter":
12301230
loc.key_string = f"{loc.measurement}_{log_found}"
12311231
if "phase" in loc.measurement:
12321232
loc.key_string = f"{loc.measurement}"

0 commit comments

Comments
 (0)