From a813847f6e9dcc0abc0d59994ac330593300909c Mon Sep 17 00:00:00 2001 From: Paul Beckcom <46651681+pbeckcom@users.noreply.github.com> Date: Fri, 3 Apr 2020 10:45:33 -0500 Subject: [PATCH] Automatic: fix OAuth2 redirect (#33581) Integration configuration cannot complete as it is currently looking for /states after authentication. Replacing with /lovelace to allow the script to complete after successful authentication with Automatic. --- homeassistant/components/automatic/device_tracker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/automatic/device_tracker.py b/homeassistant/components/automatic/device_tracker.py index 0fc747ffaa97..0f48ef6376db 100644 --- a/homeassistant/components/automatic/device_tracker.py +++ b/homeassistant/components/automatic/device_tracker.py @@ -164,7 +164,7 @@ class AutomaticAuthCallbackView(HomeAssistantView): """Finish OAuth callback request.""" hass = request.app["hass"] params = request.query - response = web.HTTPFound("/states") + response = web.HTTPFound("/lovelace") if "state" not in params or "code" not in params: if "error" in params: