mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-12 10:28:01 +00:00
Do not pass None as timeout to http requests (#1203)
This commit is contained in:
@@ -89,6 +89,8 @@ class HttpClient:
|
||||
self._last_url = url
|
||||
self.client.cookie_jar.clear()
|
||||
return_json = bool(json)
|
||||
if self._config.timeout is None:
|
||||
_LOGGER.warning("Request timeout is set to None.")
|
||||
client_timeout = aiohttp.ClientTimeout(total=self._config.timeout)
|
||||
|
||||
# If json is not a dict send as data.
|
||||
|
Reference in New Issue
Block a user