mirror of https://github.com/home-assistant/core
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.
This commit is contained in:
parent
066254afdf
commit
a813847f6e
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue