mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Update shopping_list.markdown (#37405)
Added documentation of the "remove" action which is present in the shopping_list_updated event that is fired when an item is removed from the list. This was not present before (only add and update were).
This commit is contained in:
parent
73148cb2f3
commit
3f4e9f4a2a
@ -80,13 +80,13 @@ Sort all items by name in the shopping list.
|
||||
|
||||
A `shopping_list_updated` event is triggered when items in the list are modified, with the following data payload attached to it. This can be used to trigger automations such as sending a push notification when someone adds an item to the shopping list, which when clicked, will open the list.
|
||||
|
||||
| Data payload attribute | Description |
|
||||
| ---------------------- | ------------------------------------------------------------------------------------------------------------------ |
|
||||
| `action` | What action was taken on the item. Either `add` for a new item being added, or `update` for an item being updated. |
|
||||
| `item` | A dictionary containing details of the item that was updated. |
|
||||
| `item.id` | A unique ID for this item |
|
||||
| `item.name` | The text attached to the item, for example `Milk` |
|
||||
| `item.complete` | A boolean indicated whether the item has been marked as complete. |
|
||||
| Data payload attribute | Description |
|
||||
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `action` | What action was taken on the item. Either `add` for a new item being added, `update` for an item being updated, or `remove` for an item being removed. |
|
||||
| `item` | A dictionary containing details of the item that was updated. |
|
||||
| `item.id` | A unique ID for this item |
|
||||
| `item.name` | The text attached to the item, for example `Milk` |
|
||||
| `item.complete` | A boolean indicated whether the item has been marked as complete. |
|
||||
|
||||
{% raw %}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user