Fix if condition docs

This commit is contained in:
Otto Winter 2018-10-26 23:13:23 +02:00
parent 058860af11
commit ede025543e
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E

View File

@ -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!");