mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-28 17:48:35 +01:00
Fix if condition docs
This commit is contained in:
parent
058860af11
commit
ede025543e
@ -362,6 +362,7 @@ turns on a light for 5 seconds. Otherwise, the light is turned off immediately.
|
|||||||
on_...:
|
on_...:
|
||||||
then:
|
then:
|
||||||
- if:
|
- if:
|
||||||
|
condition:
|
||||||
lambda: 'return id(some_sensor).state < 30;'
|
lambda: 'return id(some_sensor).state < 30;'
|
||||||
then:
|
then:
|
||||||
- lambda: 'ESP_LOGD("main", "The sensor value is below 30!");
|
- lambda: 'ESP_LOGD("main", "The sensor value is below 30!");
|
||||||
|
Loading…
Reference in New Issue
Block a user