python-roborock 2.12.2__tar.gz → 2.14.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_roborock-2.12.2 → python_roborock-2.14.0}/PKG-INFO +1 -1
- {python_roborock-2.12.2 → python_roborock-2.14.0}/pyproject.toml +1 -1
- {python_roborock-2.12.2 → python_roborock-2.14.0}/roborock/containers.py +1 -1
- {python_roborock-2.12.2 → python_roborock-2.14.0}/roborock/version_1_apis/roborock_client_v1.py +4 -0
- {python_roborock-2.12.2 → python_roborock-2.14.0}/roborock/web_api.py +21 -1
- {python_roborock-2.12.2 → python_roborock-2.14.0}/LICENSE +0 -0
- {python_roborock-2.12.2 → python_roborock-2.14.0}/README.md +0 -0
- {python_roborock-2.12.2 → python_roborock-2.14.0}/roborock/__init__.py +0 -0
- {python_roborock-2.12.2 → python_roborock-2.14.0}/roborock/api.py +0 -0
- {python_roborock-2.12.2 → python_roborock-2.14.0}/roborock/cli.py +0 -0
- {python_roborock-2.12.2 → python_roborock-2.14.0}/roborock/cloud_api.py +0 -0
- {python_roborock-2.12.2 → python_roborock-2.14.0}/roborock/code_mappings.py +0 -0
- {python_roborock-2.12.2 → python_roborock-2.14.0}/roborock/command_cache.py +0 -0
- {python_roborock-2.12.2 → python_roborock-2.14.0}/roborock/const.py +0 -0
- {python_roborock-2.12.2 → python_roborock-2.14.0}/roborock/exceptions.py +0 -0
- {python_roborock-2.12.2 → python_roborock-2.14.0}/roborock/local_api.py +0 -0
- {python_roborock-2.12.2 → python_roborock-2.14.0}/roborock/protocol.py +0 -0
- {python_roborock-2.12.2 → python_roborock-2.14.0}/roborock/py.typed +0 -0
- {python_roborock-2.12.2 → python_roborock-2.14.0}/roborock/roborock_future.py +0 -0
- {python_roborock-2.12.2 → python_roborock-2.14.0}/roborock/roborock_message.py +0 -0
- {python_roborock-2.12.2 → python_roborock-2.14.0}/roborock/roborock_typing.py +0 -0
- {python_roborock-2.12.2 → python_roborock-2.14.0}/roborock/util.py +0 -0
- {python_roborock-2.12.2 → python_roborock-2.14.0}/roborock/version_1_apis/__init__.py +0 -0
- {python_roborock-2.12.2 → python_roborock-2.14.0}/roborock/version_1_apis/roborock_local_client_v1.py +0 -0
- {python_roborock-2.12.2 → python_roborock-2.14.0}/roborock/version_1_apis/roborock_mqtt_client_v1.py +0 -0
- {python_roborock-2.12.2 → python_roborock-2.14.0}/roborock/version_a01_apis/__init__.py +0 -0
- {python_roborock-2.12.2 → python_roborock-2.14.0}/roborock/version_a01_apis/roborock_client_a01.py +0 -0
- {python_roborock-2.12.2 → python_roborock-2.14.0}/roborock/version_a01_apis/roborock_mqtt_client_a01.py +0 -0
|
@@ -226,6 +226,7 @@ class RRiot(RoborockBase):
|
|
|
226
226
|
|
|
227
227
|
@dataclass
|
|
228
228
|
class UserData(RoborockBase):
|
|
229
|
+
rriot: RRiot
|
|
229
230
|
uid: int | None = None
|
|
230
231
|
tokentype: str | None = None
|
|
231
232
|
token: str | None = None
|
|
@@ -234,7 +235,6 @@ class UserData(RoborockBase):
|
|
|
234
235
|
countrycode: str | None = None
|
|
235
236
|
country: str | None = None
|
|
236
237
|
nickname: str | None = None
|
|
237
|
-
rriot: RRiot | None = None
|
|
238
238
|
tuya_device_state: int | None = None
|
|
239
239
|
avatarurl: str | None = None
|
|
240
240
|
|
{python_roborock-2.12.2 → python_roborock-2.14.0}/roborock/version_1_apis/roborock_client_v1.py
RENAMED
|
@@ -336,6 +336,10 @@ class RoborockClientV1(RoborockClient, ABC):
|
|
|
336
336
|
return [ServerTimer(*server_timers)]
|
|
337
337
|
return []
|
|
338
338
|
|
|
339
|
+
async def load_multi_map(self, map_flag: int) -> None:
|
|
340
|
+
"""Load the map into the vacuum's memory."""
|
|
341
|
+
await self.send_command(RoborockCommand.LOAD_MULTI_MAP, [map_flag])
|
|
342
|
+
|
|
339
343
|
def _get_payload(
|
|
340
344
|
self,
|
|
341
345
|
method: RoborockCommand | str,
|
|
@@ -285,7 +285,7 @@ class RoborockApiClient:
|
|
|
285
285
|
)
|
|
286
286
|
raise RoborockException(f"{home_id_response.get('msg')} - response code: {home_id_response.get('code')}")
|
|
287
287
|
|
|
288
|
-
return home_id_response["data"]
|
|
288
|
+
return home_id_response["data"]["rrHomeId"]
|
|
289
289
|
|
|
290
290
|
async def get_home_data(self, user_data: UserData) -> HomeData:
|
|
291
291
|
rriot = user_data.rriot
|
|
@@ -332,6 +332,26 @@ class RoborockApiClient:
|
|
|
332
332
|
else:
|
|
333
333
|
raise RoborockException("home_response result was an unexpected type")
|
|
334
334
|
|
|
335
|
+
async def get_home_data_v3(self, user_data: UserData) -> HomeData:
|
|
336
|
+
"""This is the same as get_home_data, but uses a different endpoint and includes non-robotic vacuums."""
|
|
337
|
+
rriot = user_data.rriot
|
|
338
|
+
home_id = await self._get_home_id(user_data)
|
|
339
|
+
if rriot.r.a is None:
|
|
340
|
+
raise RoborockException("Missing field 'a' in rriot reference")
|
|
341
|
+
home_request = PreparedRequest(
|
|
342
|
+
rriot.r.a,
|
|
343
|
+
{
|
|
344
|
+
"Authorization": self._get_hawk_authentication(rriot, "/v3/user/homes/" + home_id),
|
|
345
|
+
},
|
|
346
|
+
)
|
|
347
|
+
home_response = await home_request.request("get", "/v3/user/homes/" + home_id)
|
|
348
|
+
if not home_response.get("success"):
|
|
349
|
+
raise RoborockException(home_response)
|
|
350
|
+
home_data = home_response.get("result")
|
|
351
|
+
if isinstance(home_data, dict):
|
|
352
|
+
return HomeData.from_dict(home_data)
|
|
353
|
+
raise RoborockException(f"home_response result was an unexpected type: {home_data}")
|
|
354
|
+
|
|
335
355
|
async def get_rooms(self, user_data: UserData, home_id: int | None = None) -> list[HomeDataRoom]:
|
|
336
356
|
rriot = user_data.rriot
|
|
337
357
|
if rriot is None:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_roborock-2.12.2 → python_roborock-2.14.0}/roborock/version_1_apis/roborock_mqtt_client_v1.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_roborock-2.12.2 → python_roborock-2.14.0}/roborock/version_a01_apis/roborock_client_a01.py
RENAMED
|
File without changes
|
|
File without changes
|