mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Follow redirects in generic camera (#94931)
This commit is contained in:
parent
b600c2cd85
commit
45616b8127
@ -200,7 +200,7 @@ class GenericCamera(Camera):
|
|||||||
try:
|
try:
|
||||||
async_client = get_async_client(self.hass, verify_ssl=self.verify_ssl)
|
async_client = get_async_client(self.hass, verify_ssl=self.verify_ssl)
|
||||||
response = await async_client.get(
|
response = await async_client.get(
|
||||||
url, auth=self._auth, timeout=GET_IMAGE_TIMEOUT
|
url, auth=self._auth, follow_redirects=True, timeout=GET_IMAGE_TIMEOUT
|
||||||
)
|
)
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
self._last_image = response.content
|
self._last_image = response.content
|
||||||
|
Loading…
x
Reference in New Issue
Block a user