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 34a3b21 commit a71a77dCopy full SHA for a71a77d
plugwise/helper.py
@@ -951,10 +951,8 @@ 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:
955
- loc.net_string = (
956
- f"net_electricity_{log_found}"
957
- )
+ if "electricity" in log_found and "interval" not in log_found:
+ loc.net_string = f"net_electricity_{log_found}"
958
val = loc.logs.find(loc.locator).text
959
log_date = parse(loc.logs.find(loc.locator).get("log_date"))
960
loc.log_date = log_date.astimezone(tz.gettz("UTC")).replace(tzinfo=None)
0 commit comments