Skip to content

Commit

Permalink
document actions that trigger a 'shopping_list_updated ' event (#37415)
Browse files Browse the repository at this point in the history
* shopping list: document actions that trigger a 'shopping_list_updated' event

- list actions as defined in https://github.com/home-assistant/core/blob/35416189f2944f58b5b91d9cf8ac90a491a10890/homeassistant/components/shopping_list/__init__.py#L301
- inspired by #37405

* Revert formatting changes

* Update source/_integrations/shopping_list.markdown

---------

Co-authored-by: Joost Lekkerkerker <[email protected]>
  • Loading branch information
c0ffeeca7 and joostlek authored Feb 17, 2025
1 parent f7d6a4c commit fdac05d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions source/_integrations/shopping_list.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,12 @@ actions:
```
{% endraw %}
You can also trigger an automation when a `shopping_list_updated` event was triggered by any of the following actions:

- `clear`: A completed item was cleared from the list.
- `sorted`: The items in the list were sorted by name.
- `reorder`: An item has been reordered in the list.
- `update_list`: All items have been updated.

In these cases, the event does not return a list item.

0 comments on commit fdac05d

Please sign in to comment.