Add reauth flow to Google Tasks (#109517)

* Add reauth flow to Google Tasks

* Update homeassistant/components/google_tasks/config_flow.py

Co-authored-by: Jan-Philipp Benecke <github@bnck.me>

* Add tests

* Reauth

* Remove insta reauth

* Fix

---------

Co-authored-by: Jan-Philipp Benecke <github@bnck.me>
This commit is contained in:
Joost Lekkerkerker 2024-04-19 17:38:39 +02:00 committed by GitHub
parent ff83d9acff
commit c108c7df38
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 204 additions and 24 deletions

View file

@ -6,7 +6,10 @@ DOMAIN = "google_tasks"
OAUTH2_AUTHORIZE = "https://accounts.google.com/o/oauth2/v2/auth"
OAUTH2_TOKEN = "https://oauth2.googleapis.com/token"
OAUTH2_SCOPES = ["https://www.googleapis.com/auth/tasks"]
OAUTH2_SCOPES = [
"https://www.googleapis.com/auth/tasks",
"https://www.googleapis.com/auth/userinfo.profile",
]
class TaskStatus(StrEnum):