hass-core/homeassistant/components/google_tasks/const.py
Joost Lekkerkerker c108c7df38
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>
2024-04-19 17:38:39 +02:00

19 lines
468 B
Python

"""Constants for the Google Tasks integration."""
from enum import StrEnum
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",
"https://www.googleapis.com/auth/userinfo.profile",
]
class TaskStatus(StrEnum):
"""Status of a Google Task."""
NEEDS_ACTION = "needsAction"
COMPLETED = "completed"