Skip to content

Commit d1abe77

Browse files
author
autoblack
committed
fixup: ha_energy Python code reformatted using Black
1 parent 7d0b8f4 commit d1abe77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugwise/helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ def _appliance_measurements(self, appliance, data, measurements):
723723
name = f"{measurement}_interval"
724724
measure = appliance.find(i_locator).text
725725
log_date = parse(appliance.find(i_locator).get("log_date"))
726-
log_date = log_date.astimezone(tz.gettz('UTC')).replace(tzinfo=None)
726+
log_date = log_date.astimezone(tz.gettz("UTC")).replace(tzinfo=None)
727727
log_date = log_date.strftime("%Y-%m-%d %H:%M:%S")
728728
data[name] = [format_measure(measure, ENERGY_WATT_HOUR), log_date]
729729

@@ -1153,7 +1153,7 @@ def _create_lists_from_data(self, data, bs_list, s_list, sw_list):
11531153
if type(value) is list:
11541154
log_date = value[1]
11551155
value = value[0]
1156-
item["last_reset"] = log_date
1156+
item["last_reset"] = log_date
11571157
item[ATTR_STATE] = value
11581158
s_list.append(item)
11591159
for item in SWITCHES:

0 commit comments

Comments
 (0)