Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b5228d

Browse files
authored
Add shopping item removal service (home-assistant#25109)
1 parent 2ff4a7d commit 2b5228d

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

source/_integrations/shopping_list.markdown

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,35 +23,43 @@ You can add or remove items from your shopping list by using the following servi
2323

2424
### Service `shopping_list.add_item`
2525

26-
Adds an item to the shopping list.
26+
Add an item to the shopping list.
2727

2828
| Service data attribute | Optional | Description |
2929
|------------------------|----------|--------------------------------------------------------|
3030
| `name` | no | Name of the item to add. Example: "Milk" |
3131

32+
### Service `shopping_list.remove_item`
33+
34+
Remove the first item with matching name from the shopping list.
35+
36+
| Service data attribute | Optional | Description |
37+
|------------------------|----------|--------------------------------------------------------|
38+
| `name` | no | Name of the item to remove. Example: "Milk" |
39+
3240
### Service `shopping_list.complete_item`
3341

34-
Marks an item as completed in the shopping list. It does not remove the item.
42+
Mark the first item with matching name as completed in the shopping list. It does not remove the item.
3543

3644
| Service data attribute | Optional | Description |
3745
|------------------------|----------|--------------------------------------------------------|
3846
| `name` | no | Name of the item to mark as completed. Example: "Milk" |
3947

4048
### Service `shopping_list.incomplete_item`
4149

42-
Marks an item as incomplete in the shopping list.
50+
Mark the first item with matching name as incomplete in the shopping list.
4351

4452
| Service data attribute | Optional | Description |
4553
|------------------------|----------|--------------------------------------------------------|
4654
| `name` | no | Name of the item to mark as incomplete. Example: "Milk" |
4755

4856
### Service `shopping_list.complete_all`
4957

50-
Marks all items as completed in the shopping list. It does not remove the items.
58+
Mark all items as completed in the shopping list (without removing them from the list).
5159

5260
### Service `shopping_list.incomplete_all`
5361

54-
Marks all items as incomplete in the shopping list.
62+
Mark all items as incomplete in the shopping list.
5563

5664
### Service `shopping_list.clear_completed_items`
5765

0 commit comments

Comments
 (0)