mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-12-23 21:20:14 +00:00
Fix transport retries after close (#568)
This commit is contained in:
@@ -118,6 +118,8 @@ class KlapTransport(BaseTransport):
|
||||
|
||||
async def client_post(self, url, params=None, data=None):
|
||||
"""Send an http post request to the device."""
|
||||
if not self._http_client:
|
||||
self._http_client = httpx.AsyncClient()
|
||||
response_data = None
|
||||
cookies = None
|
||||
if self._session_cookie:
|
||||
|
||||
Reference in New Issue
Block a user