Add todo component (#100019)

This commit is contained in:
Allen Porter 2023-10-23 13:53:00 -07:00 committed by GitHub
parent fa1df7e334
commit 5d430f53cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 1908 additions and 31 deletions

View file

@ -0,0 +1,24 @@
"""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"