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