Skip to content

Commit e4aeebc

Browse files
fix: keep_alive_func
1 parent dbffaab commit e4aeebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roborock/local_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def is_connected(self):
4848

4949
async def keep_alive_func(self, _=None):
5050
await self.ping()
51-
self.keep_alive_task = self.loop.call_later(10, lambda: self.keep_alive_func())
51+
self.keep_alive_task = self.loop.call_later(10, lambda: asyncio.create_task(self.keep_alive_func()))
5252

5353
async def async_connect(self) -> None:
5454
async with self._mutex:

0 commit comments

Comments
 (0)