Skip to content

Commit 00e4aa7

Browse files
author
autoblack
committed
fixup: move-formatting Python code reformatted using Black
1 parent 187434c commit 00e4aa7

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

plugwise/constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@
304304
ATTR_UNIT_OF_MEASUREMENT: VOLUME_CUBIC_METERS,
305305
},
306306
"outdoor_temperature": {
307-
ATTR_NAME: "temperature",
308-
ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS
307+
ATTR_NAME: "temperature",
308+
ATTR_UNIT_OF_MEASUREMENT: TEMP_CELSIUS,
309309
},
310310
}
311311

plugwise/smile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -870,8 +870,7 @@ def get_power_data_from_location(self, loc_id):
870870
net_string = f"net_electricity_{log_found}"
871871
val = loc_logs.find(locator).text
872872
if all(
873-
item in key_string
874-
for item in ['electricity', 'cumulative']
873+
item in key_string for item in ["electricity", "cumulative"]
875874
):
876875
f_val = format_measure(val, ENERGY_KILO_WATT_HOUR)
877876
else:

0 commit comments

Comments
 (0)