Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for the Todoist component."""
2 
3 from typing import Final
4 
5 CONF_EXTRA_PROJECTS: Final = "custom_projects"
6 CONF_PROJECT_DUE_DATE: Final = "due_date_days"
7 CONF_PROJECT_LABEL_WHITELIST: Final = "labels"
8 CONF_PROJECT_WHITELIST: Final = "include_projects"
9 
10 # Calendar Platform: Does this calendar event last all day?
11 ALL_DAY: Final = "all_day"
12 # Attribute: All tasks in this project
13 ALL_TASKS: Final = "all_tasks"
14 # Todoist API: "Completed" flag -- 1 if complete, else 0
15 CHECKED: Final = "checked"
16 # Attribute: Is this task complete?
17 COMPLETED: Final = "completed"
18 # Todoist API: What is this task about?
19 # Service Call: What is this task about?
20 CONTENT: Final = "content"
21 # Calendar Platform: Get a calendar event's description
22 DESCRIPTION: Final = "description"
23 # Calendar Platform: Used in the '_get_date()' method
24 DATETIME: Final = "dateTime"
25 DUE: Final = "due"
26 # Service Call: When is this task due (in natural language)?
27 DUE_DATE_STRING: Final = "due_date_string"
28 # Service Call: The language of DUE_DATE_STRING
29 DUE_DATE_LANG: Final = "due_date_lang"
30 # Service Call: When should user be reminded of this task (in natural language)?
31 REMINDER_DATE_STRING: Final = "reminder_date_string"
32 # Service Call: The language of REMINDER_DATE_STRING
33 REMINDER_DATE_LANG: Final = "reminder_date_lang"
34 # Service Call: The available options of DUE_DATE_LANG
35 DUE_DATE_VALID_LANGS: Final = [
36  "en",
37  "da",
38  "pl",
39  "zh",
40  "ko",
41  "de",
42  "pt",
43  "ja",
44  "it",
45  "fr",
46  "sv",
47  "ru",
48  "es",
49  "nl",
50 ]
51 # Attribute: When is this task due?
52 # Service Call: When is this task due?
53 DUE_DATE: Final = "due_date"
54 # Service Call: When should user be reminded of this task?
55 REMINDER_DATE: Final = "reminder_date"
56 # Attribute: Is this task due today?
57 DUE_TODAY: Final = "due_today"
58 # Calendar Platform: When a calendar event ends
59 END: Final = "end"
60 # Todoist API: Look up a Project/Label/Task ID
61 ID: Final = "id"
62 # Todoist API: Fetch all labels
63 # Service Call: What are the labels attached to this task?
64 LABELS: Final = "labels"
65 # Todoist API: "Name" value
66 NAME: Final = "name"
67 # Todoist API: "Full Name" value
68 FULL_NAME: Final = "full_name"
69 # Attribute: Is this task overdue?
70 OVERDUE: Final = "overdue"
71 # Attribute: What is this task's priority?
72 # Todoist API: Get a task's priority
73 # Service Call: What is this task's priority?
74 PRIORITY: Final = "priority"
75 # Todoist API: Look up the Project ID a Task belongs to
76 PROJECT_ID: Final = "project_id"
77 # Service Call: What Project do you want a Task added to?
78 PROJECT_NAME: Final = "project"
79 # Todoist API: Fetch all Projects
80 PROJECTS: Final = "projects"
81 # Section Name: What Section of the Project do you want to add the Task to?
82 SECTION_NAME: Final = "section"
83 # Calendar Platform: When does a calendar event start?
84 START: Final = "start"
85 # Calendar Platform: What is the next calendar event about?
86 SUMMARY: Final = "summary"
87 # Todoist API: Fetch all Tasks
88 TASKS: Final = "items"
89 # Todoist API: "responsible" for a Task
90 ASSIGNEE: Final = "assignee"
91 # Todoist API: Collaborators in shared projects
92 COLLABORATORS: Final = "collaborators"
93 
94 DOMAIN: Final = "todoist"
95 
96 SERVICE_NEW_TASK: Final = "new_task"