Change xiaomi _retrieve_list() timeout setting (#63964)
parent
408e9b2943
commit
9998ed4fc0
|
@ -113,7 +113,7 @@ def _retrieve_list(host, token, **kwargs):
|
|||
url = "http://{}/cgi-bin/luci/;stok={}/api/misystem/devicelist"
|
||||
url = url.format(host, token)
|
||||
try:
|
||||
res = requests.get(url, timeout=5, **kwargs)
|
||||
res = requests.get(url, timeout=10, **kwargs)
|
||||
except requests.exceptions.Timeout:
|
||||
_LOGGER.exception("Connection to the router timed out at URL %s", url)
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue