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 5a6e0b1 commit 6a43f46Copy full SHA for 6a43f46
plugwise/helper.py
@@ -950,9 +950,10 @@ def _power_data_peak_value(self, loc):
950
loc.key_string = f"{loc.measurement}_{peak}_{log_found}"
951
if "gas" in loc.measurement:
952
loc.key_string = f"{loc.measurement}_{log_found}"
953
- if "interval" not in log_found:
+ # Don't create net_elec_interval sensor!
954
+ if "electricity" in log_found and "interval" not in log_found:
955
loc.net_string = (
- f"net_electricity_{log_found}" # Don't create net_elec_interval sensor!
956
+ f"net_electricity_{log_found}"
957
)
958
val = loc.logs.find(loc.locator).text
959
log_date = parse(loc.logs.find(loc.locator).get("log_date"))
0 commit comments