Skip to content

Commit a63eac8

Browse files
committed
Correct var-name
1 parent a71a77d commit a63eac8

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
@@ -951,7 +951,7 @@ def _power_data_peak_value(self, loc):
951951
if "gas" in loc.measurement:
952952
loc.key_string = f"{loc.measurement}_{log_found}"
953953
# Don't create net_elec_interval sensor!
954-
if "electricity" in log_found and "interval" not in log_found:
954+
if "electricity" in loc.measurement and "interval" not in log_found:
955955
loc.net_string = f"net_electricity_{log_found}"
956956
val = loc.logs.find(loc.locator).text
957957
log_date = parse(loc.logs.find(loc.locator).get("log_date"))

0 commit comments

Comments
 (0)