From aca2c3a27a2f987cfc50526c2d0f73ca132b1fa7 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 8 Dec 2021 11:03:07 -1000 Subject: [PATCH] Restore rest integration ability to follow http redirects (#61293) --- homeassistant/components/rest/data.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/rest/data.py b/homeassistant/components/rest/data.py index e9fbb5718a5..bc98b0caf68 100644 --- a/homeassistant/components/rest/data.py +++ b/homeassistant/components/rest/data.py @@ -65,6 +65,7 @@ class RestData: auth=self._auth, data=self._request_data, timeout=self._timeout, + follow_redirects=True, ) self.data = response.text self.headers = response.headers