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:
Paul Beckcom 2020-04-03 10:45:33 -05:00 committed by GitHub
parent 066254afdf
commit a813847f6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: