Skip to content

Commit a71a77d

Browse files
author
autoblack
committed
fixup: support_p1_legacy_try_2 Python code reformatted using Black
1 parent 34a3b21 commit a71a77d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

plugwise/helper.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -951,10 +951,8 @@ 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:
955-
loc.net_string = (
956-
f"net_electricity_{log_found}"
957-
)
954+
if "electricity" in log_found and "interval" not in log_found:
955+
loc.net_string = f"net_electricity_{log_found}"
958956
val = loc.logs.find(loc.locator).text
959957
log_date = parse(loc.logs.find(loc.locator).get("log_date"))
960958
loc.log_date = log_date.astimezone(tz.gettz("UTC")).replace(tzinfo=None)

0 commit comments

Comments
 (0)