From d7699cd4958411da64556d4baa7e66d683120807 Mon Sep 17 00:00:00 2001 From: Samuel Sieb Date: Wed, 26 Oct 2022 14:10:27 -0700 Subject: [PATCH] fix lambda entries in the script docs (#2390) --- guides/automations.rst | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/guides/automations.rst b/guides/automations.rst index ce49aa03a..d8da7656d 100644 --- a/guides/automations.rst +++ b/guides/automations.rst @@ -734,7 +734,7 @@ or as lambda .. code-block:: yaml - lambda: 'id(my_script).execute(); + lambda: 'id(my_script).execute();' .. _script-stop_action: @@ -795,12 +795,7 @@ of the script are running in parallel, this will block until all of them have te - script.execute: my_script - script.wait: my_script -or as lambda - -.. code-block:: yaml - - lambda: |- - id(my_script).execute(); +This can't be used in a lambda as it would block all functioning of the device. The script wouldn't even get to run. .. _script-is_running_condition: