mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
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:
parent
f7d6a4c786
commit
fdac05d344
@ -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.
|
Loading…
x
Reference in New Issue
Block a user