mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-09-29 04:27:32 +02:00
Fix template example
This commit is contained in:
parent
491da56f63
commit
f8208948dc
@ -14,7 +14,7 @@ a binary sensor.
|
|||||||
- platform: template
|
- platform: template
|
||||||
name: "Garage Door Open"
|
name: "Garage Door Open"
|
||||||
lambda: >-
|
lambda: >-
|
||||||
if (isnan(id(ultrasonic_sensor1).value))) {
|
if (isnan(id(ultrasonic_sensor1).value)) {
|
||||||
// isnan checks if the ultrasonic sensor echo
|
// isnan checks if the ultrasonic sensor echo
|
||||||
// has timed out, resulting in a NaN (not a number) state
|
// has timed out, resulting in a NaN (not a number) state
|
||||||
// in that case, return {} to indicate that we don't know.
|
// in that case, return {} to indicate that we don't know.
|
||||||
|
Loading…
Reference in New Issue
Block a user