From 53043f4ee1441222d691288751d34e81568b491a Mon Sep 17 00:00:00 2001 From: Robert Resch Date: Mon, 20 Nov 2023 22:41:29 +0100 Subject: [PATCH] Add todo.remove_completed_items service call (#29929) * Add todo.remove_completed_items service call * Update source/_integrations/todo.markdown Co-authored-by: Fletcher * Tiny tweak --------- Co-authored-by: Fletcher Co-authored-by: Franck Nijhof --- source/_integrations/todo.markdown | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/source/_integrations/todo.markdown b/source/_integrations/todo.markdown index 3418365fe3d..a34e62d2400 100644 --- a/source/_integrations/todo.markdown +++ b/source/_integrations/todo.markdown @@ -112,3 +112,15 @@ target: data: 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 +``` \ No newline at end of file