mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-23 21:51:53 +01:00
Update index.rst (#2574)
* Update index.rst * Update index.rst * Update index.rst * Update index.rst --------- Co-authored-by: H. Árkosi Róbert <robreg@zsurob.hu>
This commit is contained in:
parent
18feec5037
commit
798b47dc5c
@ -203,6 +203,13 @@ them to zero.
|
||||
// perform action:
|
||||
call.perform();
|
||||
|
||||
Shorter example using auto call , call.set_brightness and call.perform.
|
||||
|
||||
.. code-block:: cpp
|
||||
|
||||
id(light_1).turn_on().set_brightness(1.0).perform();
|
||||
|
||||
|
||||
.. note::
|
||||
|
||||
The ``red``, ``green`` and ``blue`` values only control the color of the light, not its
|
||||
|
Loading…
Reference in New Issue
Block a user