Skip to content

Commit 8963f4b

Browse files
committed
chore: cleanup/revert changes
1 parent a5212fe commit 8963f4b

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

roborock/cloud_api.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ def sync_connect(self) -> Any:
162162
async def async_disconnect(self) -> None:
163163
async with self._mutex:
164164
if disconnected_future := self.sync_disconnect():
165-
# Cleanup the mqtt client threads
166165
try:
167166
await disconnected_future
168167
except VacuumError as err:

roborock/roborock_future.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,4 @@ async def async_get(self, timeout: float | int) -> tuple[Any, VacuumError | None
3333
async with async_timeout.timeout(timeout):
3434
return await self.fut
3535
finally:
36-
try:
37-
self.fut.cancel()
38-
except Exception:
39-
pass
36+
self.fut.cancel()

0 commit comments

Comments
 (0)