Skip to content

Commit 61e27ae

Browse files
authored
fix: typing of scene api call (#324)
1 parent 0320e54 commit 61e27ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

roborock/web_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ async def get_rooms(self, user_data: UserData, home_id: int | None = None) -> li
355355
else:
356356
raise RoborockException("home_response result was an unexpected type")
357357

358-
async def get_scenes(self, user_data: UserData, device_id: int) -> list[HomeDataScene]:
358+
async def get_scenes(self, user_data: UserData, device_id: str) -> list[HomeDataScene]:
359359
rriot = user_data.rriot
360360
if rriot is None:
361361
raise RoborockException("rriot is none")

tests/test_web_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async def test_get_scenes():
4242
"""Test that we can get scenes"""
4343
api = RoborockApiClient(username="test_user@gmail.com")
4444
ud = await api.pass_login("password")
45-
sc = await api.get_scenes(ud, 123456)
45+
sc = await api.get_scenes(ud, "123456")
4646
assert sc == [
4747
HomeDataScene.from_dict(
4848
{

0 commit comments

Comments
 (0)