Skip to content

Commit

Permalink
feat: add async_release (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lash-L authored Jan 3, 2024
1 parent dab105c commit ae58627
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions roborock/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ def release(self):
self.sync_disconnect()
[item.stop() for item in self.cache.values()]

async def async_release(self):
await self.async_disconnect()
[item.stop() for item in self.cache.values()]

@property
def diagnostic_data(self) -> dict:
return self._diagnostic_data
Expand Down

0 comments on commit ae58627

Please sign in to comment.