Change update semantics of To-do items (#2022)

This commit is contained in:
Allen Porter
2023-12-27 04:15:04 -08:00
committed by GitHub
parent 7dbd066c18
commit 11e231b954

View File

@@ -70,8 +70,8 @@ class MyTodoListEntity(TodoListEntity):
A To-do list entity may support updating To-do items by specifying the `UPDATE_TODO_ITEM` A To-do list entity may support updating To-do items by specifying the `UPDATE_TODO_ITEM`
supported feature. The `TodoItem` field `uid` is always present and indicates supported feature. The `TodoItem` field `uid` is always present and indicates
which item should be updated, and all other fields are optional. Integrations which item should be updated. The item passed to update is a copy of the original
must support partial update. item with fields updated or cleared.
```python ```python
from homeassistant.components.todo import TodoListEntity from homeassistant.components.todo import TodoListEntity