Skip to content

Commit ae58627

Browse files
authored
feat: add async_release (#179)
1 parent dab105c commit ae58627

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

roborock/api.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ def release(self):
180180
self.sync_disconnect()
181181
[item.stop() for item in self.cache.values()]
182182

183+
async def async_release(self):
184+
await self.async_disconnect()
185+
[item.stop() for item in self.cache.values()]
186+
183187
@property
184188
def diagnostic_data(self) -> dict:
185189
return self._diagnostic_data

0 commit comments

Comments
 (0)