Skip to content

Commit f926359

Browse files
committed
fix: bug fixes for 1.0
1 parent 8d8ff89 commit f926359

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

roborock/version_1_apis/roborock_client_v1.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,8 @@ def on_message_received(self, messages: list[RoborockMessage]) -> None:
448448
"Received unsolicited map response for request_id %s", map_response.request_id
449449
)
450450
else:
451+
if data.protocol == RoborockMessageProtocol.GENERAL_RESPONSE and data.payload is None:
452+
continue
451453
queue = self._waiting_queue.get(data.seq)
452454
if queue:
453455
if data.protocol == RoborockMessageProtocol.HELLO_RESPONSE:

roborock/version_1_apis/roborock_local_client_v1.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,6 @@ async def _send_command(
191191
):
192192
if method in CLOUD_REQUIRED:
193193
raise RoborockException(f"Method {method} is not supported over local connection")
194-
if self._version is None:
195-
await self.async_connect()
196194
if self._version == "L01":
197195
request_id = get_next_int(10000, 999999)
198196
dps_payload = {

0 commit comments

Comments
 (0)