From 3a924dfc60fea047efcc7dc5c7fcd08d8d101f69 Mon Sep 17 00:00:00 2001 From: James Myatt Date: Wed, 29 Jul 2026 15:36:01 +0100 Subject: [PATCH] Correct description of "shopping_list.complete_item" action (#175534) Co-authored-by: Joostlek --- homeassistant/components/shopping_list/common.py | 2 +- homeassistant/components/shopping_list/strings.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/shopping_list/common.py b/homeassistant/components/shopping_list/common.py index 4305ba84bded..cdd7faf42383 100644 --- a/homeassistant/components/shopping_list/common.py +++ b/homeassistant/components/shopping_list/common.py @@ -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"] ] diff --git a/homeassistant/components/shopping_list/strings.json b/homeassistant/components/shopping_list/strings.json index 06ffc307b1a7..6c4fe93234fe 100644 --- a/homeassistant/components/shopping_list/strings.json +++ b/homeassistant/components/shopping_list/strings.json @@ -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).",