mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Add todo.remove_completed_items service call (#29929)
* Add todo.remove_completed_items service call * Update source/_integrations/todo.markdown Co-authored-by: Fletcher <fletcher.boyd@artifactory.org.au> * Tiny tweak --------- Co-authored-by: Fletcher <fletcher.boyd@artifactory.org.au> Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
parent
0da1e76ac5
commit
53043f4ee1
@ -112,3 +112,15 @@ target:
|
|||||||
data:
|
data:
|
||||||
item: "Submit income tax return"
|
item: "Submit income tax return"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Service `todo.remove_completed_items`
|
||||||
|
|
||||||
|
Removes all completed to-do items. A to-do list `target` is selected with a [Target Selector](/docs/blueprint/selectors/#target-selector).
|
||||||
|
|
||||||
|
This is a full example of a service call that deletes all completed to-do items.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
service: todo.remove_completed_items
|
||||||
|
target:
|
||||||
|
entity_id: todo.personal_tasks
|
||||||
|
```
|
Loading…
x
Reference in New Issue
Block a user