mirror of
https://github.com/home-assistant/core
synced 2024-10-04 07:58:43 +02:00
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."""
|
"""Finish OAuth callback request."""
|
||||||
hass = request.app["hass"]
|
hass = request.app["hass"]
|
||||||
params = request.query
|
params = request.query
|
||||||
response = web.HTTPFound("/states")
|
response = web.HTTPFound("/lovelace")
|
||||||
|
|
||||||
if "state" not in params or "code" not in params:
|
if "state" not in params or "code" not in params:
|
||||||
if "error" in params:
|
if "error" in params:
|
||||||
|
Loading…
Reference in New Issue
Block a user