Skip to content

Commit 8d8ff89

Browse files
committed
fix: make sure we are connected on message send
1 parent d7ce9ba commit 8d8ff89

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

roborock/version_1_apis/roborock_local_client_v1.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ 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()
194196
if self._version == "L01":
195197
request_id = get_next_int(10000, 999999)
196198
dps_payload = {

0 commit comments

Comments
 (0)