We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a71a77d commit a63eac8Copy full SHA for a63eac8
plugwise/helper.py
@@ -951,7 +951,7 @@ def _power_data_peak_value(self, loc):
951
if "gas" in loc.measurement:
952
loc.key_string = f"{loc.measurement}_{log_found}"
953
# Don't create net_elec_interval sensor!
954
- if "electricity" in log_found and "interval" not in log_found:
+ if "electricity" in loc.measurement and "interval" not in log_found:
955
loc.net_string = f"net_electricity_{log_found}"
956
val = loc.logs.find(loc.locator).text
957
log_date = parse(loc.logs.find(loc.locator).get("log_date"))
0 commit comments