mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-02-28 03:41:57 +01:00
Update index.rst to provide missing information on the on_value behavior (#3652)
* Update index.rst to provide missing information on the on_value behavior The on_value behavior was unclear about what happens when the selected-value is set to the same value as it already was. * Update components/select/index.rst Co-authored-by: guillempages <guillempages@users.noreply.github.com> --------- Co-authored-by: guillempages <guillempages@users.noreply.github.com> Co-authored-by: H. Árkosi Róbert <robreg@zsurob.hu>
This commit is contained in:
parent
69dd4c41ee
commit
7696f6e6f3
@ -70,7 +70,7 @@ For more information on using lambdas with select, see :ref:`select-lambda_calls
|
||||
``on_value``
|
||||
************
|
||||
|
||||
This automation will be triggered when a new value is published. In :ref:`Lambdas <config-lambda>`
|
||||
This automation will be triggered whenever a value is set/published, even if the value is the same as before. In :ref:`Lambdas <config-lambda>`
|
||||
you can get the value from the trigger with ``x`` and the index offset of the selected value with ``i``.
|
||||
|
||||
.. code-block:: yaml
|
||||
|
Loading…
Reference in New Issue
Block a user