Correct description of "shopping_list.complete_item" action (#175534)

Co-authored-by: Joostlek <joostlek@outlook.com>
This commit is contained in:
James Myatt
2026-07-29 16:36:01 +02:00
committed by GitHub
co-authored by Joostlek
parent 2b11252c1a
commit 3a924dfc60
2 changed files with 2 additions and 2 deletions
@@ -98,7 +98,7 @@ class ShoppingData:
async def async_complete(
self, name: str, context: Context | None = None
) -> list[dict[str, JsonValueType]]:
"""Mark all shopping list items with the given name as complete."""
"""Mark all incomplete shopping list items with the given name as complete."""
complete_items = [
item for item in self.items if item["name"] == name and not item["complete"]
]
@@ -37,7 +37,7 @@
"name": "Complete all shopping list items"
},
"complete_item": {
"description": "Marks the first item with matching name as completed in the shopping list.",
"description": "Marks all items with matching name as completed in the shopping list. Skips items that are already complete.",
"fields": {
"name": {
"description": "The name of the item to mark as completed (without removing).",