Skip to content

Commit 3d64e5d

Browse files
committed
Ruffed
1 parent 3ca031b commit 3d64e5d

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

plugwise/helper.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,6 @@ def _schedules(self, location: str) -> tuple[list[str], str]:
925925
if selected == NONE:
926926
selected = OFF
927927

928-
929928
return available, selected
930929

931930
def _thermostat_uri(self, loc_id: str) -> str:

plugwise/smile.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,7 @@ async def set_schedule_state(
361361
await self.call_request(uri, method="put", data=data)
362362
self._schedule_old_states[loc_id][name] = new_state
363363

364-
def determine_contexts(
365-
self, loc_id: str, state: str, sched_id: str
366-
) -> str:
364+
def determine_contexts(self, loc_id: str, state: str, sched_id: str) -> str:
367365
"""Helper-function for set_schedule_state()."""
368366
locator = f'.//*[@id="{sched_id}"]/contexts'
369367
contexts = self._domain_objects.find(locator)

tests/test_anna.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,9 @@ async def test_connect_anna_elga_2_schedule_off(self):
359359
assert self.entity_items == 65
360360

361361
result = await self.tinker_thermostat(
362-
api, "d3ce834534114348be628b61b26d9220", good_schedules=["Thermostat schedule", "off"]
362+
api,
363+
"d3ce834534114348be628b61b26d9220",
364+
good_schedules=["Thermostat schedule", "off"],
363365
)
364366
assert result
365367
await api.close_connection()

0 commit comments

Comments
 (0)