Add todo component (#100019)
This commit is contained in:
parent
fa1df7e334
commit
5d430f53cd
16 changed files with 1908 additions and 31 deletions
24
homeassistant/components/todo/const.py
Normal file
24
homeassistant/components/todo/const.py
Normal 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"
|
Loading…
Add table
Add a link
Reference in a new issue