25 lines
505 B
Python
25 lines
505 B
Python
"""Constants for the To-do integration."""
|
|
|
|
from enum import IntFlag, StrEnum
|
|
|
|
DOMAIN = "todo"
|
|
|
|
|
|
class TodoListEntityFeature(IntFlag):
|
|
"""Supported features of the To-do List entity."""
|
|
|
|
CREATE_TODO_ITEM = 1
|
|
DELETE_TODO_ITEM = 2
|
|
UPDATE_TODO_ITEM = 4
|
|
MOVE_TODO_ITEM = 8
|
|
|
|
|
|
class TodoItemStatus(StrEnum):
|
|
"""Status or confirmation of a To-do List Item.
|
|
|
|
This is a subset of the statuses supported in rfc5545.
|
|
"""
|
|
|
|
NEEDS_ACTION = "needs_action"
|
|
COMPLETED = "completed"
|