document actions that trigger a 'shopping_list_updated ' event (#37415)

* shopping list: document actions that trigger a 'shopping_list_updated' event

- list actions as defined in 35416189f2/homeassistant/components/shopping_list/__init__.py (L301)
- inspired by https://github.com/home-assistant/home-assistant.io/pull/37405/

* Revert formatting changes

* Update source/_integrations/shopping_list.markdown

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
This commit is contained in:
c0ffeeca7 2025-02-17 11:02:15 +01:00 committed by GitHub
parent f7d6a4c786
commit fdac05d344
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -107,3 +107,12 @@ actions:
``` ```
{% endraw %} {% 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.