Skip to content

Commit 15aff42

Browse files
author
autoruff
committed
fixup: improve-01 Python code fixed using ruff
1 parent e91a3bb commit 15aff42

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

plugwise/data.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,11 @@ def _get_schedule_states_with_off(
332332
"""
333333
self._schedule_old_states[location] = {}
334334
for schedule in schedules:
335-
self._schedule_old_states[location][schedule] = "on" if schedule == selected and data["climate_mode"] == "auto" else "off"
335+
self._schedule_old_states[location][schedule] = (
336+
"on"
337+
if schedule == selected and data["climate_mode"] == "auto"
338+
else "off"
339+
)
336340

337341
all_off = True
338342
for state in self._schedule_old_states[location].values():

0 commit comments

Comments
 (0)