Fix template example

This commit is contained in:
Otto Winter 2018-06-06 09:49:11 +02:00
parent 491da56f63
commit f8208948dc
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E

View File

@ -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.