mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-08 18:06:29 +00:00
Change update semantics of To-do items (#2022)
This commit is contained in:
parent
7dbd066c18
commit
11e231b954
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user