From 9998ed4fc03c00872a891ed4af3d75fce772aac1 Mon Sep 17 00:00:00 2001 From: Ljzd-PRO <63289359+Ljzd-PRO@users.noreply.github.com> Date: Thu, 31 Mar 2022 03:19:13 +0800 Subject: [PATCH] Change xiaomi _retrieve_list() timeout setting (#63964) --- homeassistant/components/xiaomi/device_tracker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/xiaomi/device_tracker.py b/homeassistant/components/xiaomi/device_tracker.py index c21f21e1f9b..f941dba2d01 100644 --- a/homeassistant/components/xiaomi/device_tracker.py +++ b/homeassistant/components/xiaomi/device_tracker.py @@ -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