1 """Constants for the To-do integration."""
3 from __future__
import annotations
5 from enum
import IntFlag, StrEnum
6 from typing
import TYPE_CHECKING
13 from .
import TodoListEntity
16 DATA_COMPONENT: HassKey[EntityComponent[TodoListEntity]] =
HassKey(DOMAIN)
19 ATTR_DUE_DATE =
"due_date"
20 ATTR_DUE_DATETIME =
"due_datetime"
21 ATTR_DESCRIPTION =
"description"
23 ATTR_RENAME =
"rename"
24 ATTR_STATUS =
"status"
28 """Services for the To-do integration."""
31 UPDATE_ITEM =
"update_item"
32 REMOVE_ITEM =
"remove_item"
33 GET_ITEMS =
"get_items"
34 REMOVE_COMPLETED_ITEMS =
"remove_completed_items"
38 """Supported features of the To-do List entity."""
44 SET_DUE_DATE_ON_ITEM = 16
45 SET_DUE_DATETIME_ON_ITEM = 32
46 SET_DESCRIPTION_ON_ITEM = 64
50 """Status or confirmation of a To-do List Item.
52 This is a subset of the statuses supported in rfc5545.
55 NEEDS_ACTION =
"needs_action"
56 COMPLETED =
"completed"