Add timeouts to requests calls (#76851)
This commit is contained in:
parent
4eb4146e29
commit
1faabb8f40
7 changed files with 13 additions and 7 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue