mirror of
https://github.com/home-assistant/core.git
synced 2026-08-06 21:35:13 +01:00
Correct description of "shopping_list.complete_item" action (#175534)
Co-authored-by: Joostlek <joostlek@outlook.com>
This commit is contained in:
@@ -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).",
|
||||
|
||||
Reference in New Issue
Block a user