python-roborock 2.1.0__tar.gz → 2.1.1__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.1.0 → python_roborock-2.1.1}/PKG-INFO +1 -1
- {python_roborock-2.1.0 → python_roborock-2.1.1}/pyproject.toml +1 -1
- {python_roborock-2.1.0 → python_roborock-2.1.1}/roborock/version_1_apis/roborock_client_v1.py +2 -0
- {python_roborock-2.1.0 → python_roborock-2.1.1}/LICENSE +0 -0
- {python_roborock-2.1.0 → python_roborock-2.1.1}/README.md +0 -0
- {python_roborock-2.1.0 → python_roborock-2.1.1}/roborock/__init__.py +0 -0
- {python_roborock-2.1.0 → python_roborock-2.1.1}/roborock/api.py +0 -0
- {python_roborock-2.1.0 → python_roborock-2.1.1}/roborock/cli.py +0 -0
- {python_roborock-2.1.0 → python_roborock-2.1.1}/roborock/cloud_api.py +0 -0
- {python_roborock-2.1.0 → python_roborock-2.1.1}/roborock/code_mappings.py +0 -0
- {python_roborock-2.1.0 → python_roborock-2.1.1}/roborock/command_cache.py +0 -0
- {python_roborock-2.1.0 → python_roborock-2.1.1}/roborock/const.py +0 -0
- {python_roborock-2.1.0 → python_roborock-2.1.1}/roborock/containers.py +0 -0
- {python_roborock-2.1.0 → python_roborock-2.1.1}/roborock/exceptions.py +0 -0
- {python_roborock-2.1.0 → python_roborock-2.1.1}/roborock/local_api.py +0 -0
- {python_roborock-2.1.0 → python_roborock-2.1.1}/roborock/protocol.py +0 -0
- {python_roborock-2.1.0 → python_roborock-2.1.1}/roborock/py.typed +0 -0
- {python_roborock-2.1.0 → python_roborock-2.1.1}/roborock/roborock_future.py +0 -0
- {python_roborock-2.1.0 → python_roborock-2.1.1}/roborock/roborock_message.py +0 -0
- {python_roborock-2.1.0 → python_roborock-2.1.1}/roborock/roborock_typing.py +0 -0
- {python_roborock-2.1.0 → python_roborock-2.1.1}/roborock/util.py +0 -0
- {python_roborock-2.1.0 → python_roborock-2.1.1}/roborock/version_1_apis/__init__.py +0 -0
- {python_roborock-2.1.0 → python_roborock-2.1.1}/roborock/version_1_apis/roborock_local_client_v1.py +0 -0
- {python_roborock-2.1.0 → python_roborock-2.1.1}/roborock/version_1_apis/roborock_mqtt_client_v1.py +0 -0
- {python_roborock-2.1.0 → python_roborock-2.1.1}/roborock/version_a01_apis/__init__.py +0 -0
- {python_roborock-2.1.0 → python_roborock-2.1.1}/roborock/version_a01_apis/roborock_client_a01.py +0 -0
- {python_roborock-2.1.0 → python_roborock-2.1.1}/roborock/version_a01_apis/roborock_mqtt_client_a01.py +0 -0
- {python_roborock-2.1.0 → python_roborock-2.1.1}/roborock/web_api.py +0 -0
{python_roborock-2.1.0 → python_roborock-2.1.1}/roborock/version_1_apis/roborock_client_v1.py
RENAMED
|
@@ -277,6 +277,8 @@ class RoborockClientV1(RoborockClient):
|
|
|
277
277
|
"""Gets the mapping from segment id -> iot id. Only works on local api."""
|
|
278
278
|
mapping: list = await self.send_command(RoborockCommand.GET_ROOM_MAPPING)
|
|
279
279
|
if isinstance(mapping, list):
|
|
280
|
+
if not isinstance(mapping[0], list) and len(mapping) == 2:
|
|
281
|
+
return [RoomMapping(segment_id=mapping[0], iot_id=mapping[1])]
|
|
280
282
|
return [
|
|
281
283
|
RoomMapping(segment_id=segment_id, iot_id=iot_id) # type: ignore
|
|
282
284
|
for segment_id, iot_id in [unpack_list(room, 2) for room in mapping if isinstance(room, list)]
|
|
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.1.0 → python_roborock-2.1.1}/roborock/version_1_apis/roborock_local_client_v1.py
RENAMED
|
File without changes
|
{python_roborock-2.1.0 → python_roborock-2.1.1}/roborock/version_1_apis/roborock_mqtt_client_v1.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_roborock-2.1.0 → python_roborock-2.1.1}/roborock/version_a01_apis/roborock_client_a01.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|