Skip to content

Commit 07f1530

Browse files
committed
feat: get_home_data_v3 for new devices
Use get_home_data_v3 to discovered Roborock Q10 devices Update device_manager.py to use get_home_data_v3
1 parent 36f5f2b commit 07f1530

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

roborock/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ async def _discover(ctx):
128128
if not login_data:
129129
raise Exception("You need to login first")
130130
client = RoborockApiClient(login_data.email)
131-
home_data = await client.get_home_data(login_data.user_data)
131+
home_data = await client.get_home_data_v3(login_data.user_data)
132132
login_data.home_data = home_data
133133
context.update(login_data)
134134
click.echo(f"Discovered devices {', '.join([device.name for device in home_data.get_all_devices()])}")

roborock/devices/device_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def create_home_data_api(email: str, user_data: UserData) -> HomeDataApi:
9797
client = RoborockApiClient(email)
9898

9999
async def home_data_api() -> HomeData:
100-
return await client.get_home_data(user_data)
100+
return await client.get_home_data_v3(user_data)
101101

102102
return home_data_api
103103

0 commit comments

Comments
 (0)