mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-12-21 12:10:25 +00:00
Update transport close/reset behaviour (#689)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
@@ -806,6 +806,10 @@ class SmartDevice:
|
||||
"""Return the device configuration."""
|
||||
return self.protocol.config
|
||||
|
||||
async def disconnect(self):
|
||||
"""Disconnect and close any underlying connection resources."""
|
||||
await self.protocol.close()
|
||||
|
||||
@staticmethod
|
||||
async def connect(
|
||||
*,
|
||||
|
||||
Reference in New Issue
Block a user