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:
Robert Resch 2023-11-20 22:41:29 +01:00 committed by GitHub
parent 0da1e76ac5
commit 53043f4ee1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
```