python-roborock 0.32.1__tar.gz → 0.32.2__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-0.32.1 → python_roborock-0.32.2}/PKG-INFO +1 -1
- {python_roborock-0.32.1 → python_roborock-0.32.2}/pyproject.toml +1 -1
- {python_roborock-0.32.1 → python_roborock-0.32.2}/roborock/api.py +8 -3
- {python_roborock-0.32.1 → python_roborock-0.32.2}/LICENSE +0 -0
- {python_roborock-0.32.1 → python_roborock-0.32.2}/README.md +0 -0
- {python_roborock-0.32.1 → python_roborock-0.32.2}/roborock/__init__.py +0 -0
- {python_roborock-0.32.1 → python_roborock-0.32.2}/roborock/cli.py +0 -0
- {python_roborock-0.32.1 → python_roborock-0.32.2}/roborock/cloud_api.py +0 -0
- {python_roborock-0.32.1 → python_roborock-0.32.2}/roborock/code_mappings.py +0 -0
- {python_roborock-0.32.1 → python_roborock-0.32.2}/roborock/command_cache.py +0 -0
- {python_roborock-0.32.1 → python_roborock-0.32.2}/roborock/const.py +0 -0
- {python_roborock-0.32.1 → python_roborock-0.32.2}/roborock/containers.py +0 -0
- {python_roborock-0.32.1 → python_roborock-0.32.2}/roborock/exceptions.py +0 -0
- {python_roborock-0.32.1 → python_roborock-0.32.2}/roborock/local_api.py +0 -0
- {python_roborock-0.32.1 → python_roborock-0.32.2}/roborock/protocol.py +0 -0
- {python_roborock-0.32.1 → python_roborock-0.32.2}/roborock/roborock_future.py +0 -0
- {python_roborock-0.32.1 → python_roborock-0.32.2}/roborock/roborock_message.py +0 -0
- {python_roborock-0.32.1 → python_roborock-0.32.2}/roborock/roborock_typing.py +0 -0
- {python_roborock-0.32.1 → python_roborock-0.32.2}/roborock/util.py +0 -0
|
@@ -311,10 +311,8 @@ class RoborockClient:
|
|
|
311
311
|
await self.async_disconnect()
|
|
312
312
|
await self.async_connect()
|
|
313
313
|
|
|
314
|
-
async def
|
|
314
|
+
async def _wait_response(self, request_id: int, queue: RoborockFuture) -> tuple[Any, VacuumError | None]:
|
|
315
315
|
try:
|
|
316
|
-
queue = RoborockFuture(protocol_id)
|
|
317
|
-
self._waiting_queue[request_id] = queue
|
|
318
316
|
(response, err) = await queue.async_get(QUEUE_TIMEOUT)
|
|
319
317
|
if response == "unknown_method":
|
|
320
318
|
raise UnknownMethodError("Unknown method")
|
|
@@ -324,6 +322,13 @@ class RoborockClient:
|
|
|
324
322
|
finally:
|
|
325
323
|
self._waiting_queue.pop(request_id, None)
|
|
326
324
|
|
|
325
|
+
def _async_response(
|
|
326
|
+
self, request_id: int, protocol_id: int = 0
|
|
327
|
+
) -> Coroutine[Any, Any, tuple[Any, VacuumError | None]]:
|
|
328
|
+
queue = RoborockFuture(protocol_id)
|
|
329
|
+
self._waiting_queue[request_id] = queue
|
|
330
|
+
return self._wait_response(request_id, queue)
|
|
331
|
+
|
|
327
332
|
def _get_payload(
|
|
328
333
|
self,
|
|
329
334
|
method: RoborockCommand,
|
|
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
|