Change xiaomi _retrieve_list() timeout setting (#63964)

pull/68924/head
Ljzd-PRO 2022-03-31 03:19:13 +08:00 committed by GitHub
parent 408e9b2943
commit 9998ed4fc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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