Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
chore(ci): fix linting issue
Browse files Browse the repository at this point in the history
Signed-off-by: Avi Miller <me@dje.li>
  • Loading branch information
Djelibeybi committed Mar 15, 2023
1 parent 67c6bf4 commit 66f8b2a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions src/aiosoma/soma_shade.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async def close(self) -> bool:

async def stop(self) -> bool:
"""Stop shade."""
return await (self._soma.stop_shade(self._mac))
return await self._soma.stop_shade(self._mac)

async def set_position(
self, position: int, close_upwards: bool = False, morning_mode: bool = False
Expand Down Expand Up @@ -148,7 +148,6 @@ async def get_current_light_level(self) -> int | None:
> datetime.timedelta(minutes=10)
)
):

light_level = await self._soma.get_light_level(self._mac)
self._light_level = light_level
self._light_level_last_updated = datetime.datetime.now()
Expand Down
1 change: 0 additions & 1 deletion tests/test_shade.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def test_somashades_from_list_devices():
)

for shade in shades:

if shade.name == "Lounge":
assert str(shade) == "Lounge: Shade 2S (aa:aa:aa:bb:bb:bb)"
assert repr(shade) == "<Lounge Shade 2S (aa:aa:aa:bb:bb:bb)>"
Expand Down

0 comments on commit 66f8b2a

Please sign in to comment.