Follow redirects in generic camera (#94931)

This commit is contained in:
Erik Montnemery
2023-06-20 20:07:12 +02:00
committed by GitHub
parent b600c2cd85
commit 45616b8127

View File

@@ -200,7 +200,7 @@ class GenericCamera(Camera):
try:
async_client = get_async_client(self.hass, verify_ssl=self.verify_ssl)
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()
self._last_image = response.content