mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-27 17:37:45 +01:00
fix lambda entries in the script docs (#2390)
This commit is contained in:
parent
3c45f1b3ec
commit
d7699cd495
@ -734,7 +734,7 @@ or as lambda
|
|||||||
|
|
||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
lambda: 'id(my_script).execute();
|
lambda: 'id(my_script).execute();'
|
||||||
|
|
||||||
.. _script-stop_action:
|
.. _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.execute: my_script
|
||||||
- script.wait: my_script
|
- script.wait: my_script
|
||||||
|
|
||||||
or as lambda
|
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.
|
||||||
|
|
||||||
.. code-block:: yaml
|
|
||||||
|
|
||||||
lambda: |-
|
|
||||||
id(my_script).execute();
|
|
||||||
|
|
||||||
.. _script-is_running_condition:
|
.. _script-is_running_condition:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user