Skip to content

Commit ff630e3

Browse files
Lash-Lallenporter
andauthored
chore: apply suggestions from code review
Co-authored-by: Allen Porter <allen.porter@gmail.com>
1 parent a5b74df commit ff630e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roborock/web_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ async def get_schedules(self, user_data: UserData, device_id: str) -> list[HomeD
618618
rriot.r.a,
619619
self.session,
620620
{
621-
"Authorization": _get_hawk_authentication(rriot, f"/user/devices/{str(device_id)}/jobs"),
621+
"Authorization": _get_hawk_authentication(rriot, f"/user/devices/{device_id}/jobs"),
622622
},
623623
)
624624
schedules_response = await schedules_request.request("get", f"/user/devices/{str(device_id)}/jobs")
@@ -628,7 +628,7 @@ async def get_schedules(self, user_data: UserData, device_id: str) -> list[HomeD
628628
if isinstance(schedules, list):
629629
return [HomeDataSchedule.from_dict(schedule) for schedule in schedules]
630630
else:
631-
raise RoborockException("scene_response result was an unexpected type")
631+
raise RoborockException(f"scene_response result was an unexpected type: {result}")
632632

633633
async def get_products(self, user_data: UserData) -> ProductResponse:
634634
"""Gets all products and their schemas, good for determining status codes and model numbers."""

0 commit comments

Comments
 (0)