Skip to content

Commit e4adde6

Browse files
committed
Ruff fixes
1 parent 806752a commit e4adde6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

plugwise/smile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,8 @@ async def set_switch_state(
429429
lock_blocked = self.gw_entities[appl_id]["switches"].get("lock")
430430
LOGGER.debug("HOI lock_blocked=%s", lock_blocked)
431431
if lock_blocked or lock_blocked is None:
432-
# Don't switch a relay when its corresponding lock-state is true or no
433-
# lock is present. That means the relay can't be controlled by the user.
432+
# Don't switch a relay when its corresponding lock-state is true or no
433+
# lock is present. That means the relay can't be controlled by the user.
434434
return current_state
435435

436436
await self.call_request(uri, method="put", data=data)

tests/test_adam.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ async def test_connect_adam_plus_anna_new(self):
108108
assert switch_change
109109
# Test relay without lock-attribute
110110
switch_change = await self.tinker_switch(
111-
smile, "854f8a9b0e7e425db97f1f110e1ce4b3",
111+
smile,
112+
"854f8a9b0e7e425db97f1f110e1ce4b3",
112113
)
113114
assert not switch_change
114115
switch_change = await self.tinker_switch(

0 commit comments

Comments
 (0)