Add Google tasks integration, with initial read-only To-do list (#102629)
* Add Google Tasks integration * Update tests and unique id * Revert devcontainer change * Increase test coverage * Apply suggestions from code review Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Remove ternary * Fix JSON --------- Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
fb13d9ce7c
commit
0cb0e3ceeb
21 changed files with 750 additions and 0 deletions
16
homeassistant/components/google_tasks/const.py
Normal file
16
homeassistant/components/google_tasks/const.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
"""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"]
|
||||
|
||||
|
||||
class TaskStatus(StrEnum):
|
||||
"""Status of a Google Task."""
|
||||
|
||||
NEEDS_ACTION = "needsAction"
|
||||
COMPLETED = "completed"
|
Loading…
Add table
Add a link
Reference in a new issue