mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Add timeouts to HTTP requests
This commit is contained in:
@@ -60,7 +60,7 @@ def setup(hass, download_path):
|
||||
|
||||
final_path = None
|
||||
|
||||
req = requests.get(url, stream=True)
|
||||
req = requests.get(url, stream=True, timeout=10)
|
||||
|
||||
if req.status_code == 200:
|
||||
filename = None
|
||||
|
||||
Reference in New Issue
Block a user