From fdac05d34448014ec6f4b5e77be5973f103e40b2 Mon Sep 17 00:00:00 2001 From: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com> Date: Mon, 17 Feb 2025 11:02:15 +0100 Subject: [PATCH] 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 https://github.com/home-assistant/core/blob/35416189f2944f58b5b91d9cf8ac90a491a10890/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 --- source/_integrations/shopping_list.markdown | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/_integrations/shopping_list.markdown b/source/_integrations/shopping_list.markdown index a11622daa5f..204c4848387 100644 --- a/source/_integrations/shopping_list.markdown +++ b/source/_integrations/shopping_list.markdown @@ -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. \ No newline at end of file