mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Add timeouts to requests calls (#76851)
This commit is contained in:
@@ -74,7 +74,9 @@ class AbodeCamera(AbodeDevice, Camera):
|
||||
"""Attempt to download the most recent capture."""
|
||||
if self._device.image_url:
|
||||
try:
|
||||
self._response = requests.get(self._device.image_url, stream=True)
|
||||
self._response = requests.get(
|
||||
self._device.image_url, stream=True, timeout=10
|
||||
)
|
||||
|
||||
self._response.raise_for_status()
|
||||
except requests.HTTPError as err:
|
||||
|
||||
Reference in New Issue
Block a user