* Minor fix

Removing quotes around numbers in the templates

* Update entities.markdown
This commit is contained in:
DubhAd 2018-08-24 16:38:25 +01:00 committed by Fabian Affolter
parent ce9d0751ea
commit 64da013d69

View File

@ -145,7 +145,7 @@ binary_sensor:
YOUR_SENSOR:
friendly_name: "Friendly name here"
device_class: door
value_template: {{ is_state('sensor.YOUR_ORIGINAL_SENSOR_access_control', '22') }}
value_template: "{{ is_state('sensor.YOUR_ORIGINAL_SENSOR_access_control', 22) }}"
```
{% endraw %}
@ -171,7 +171,7 @@ binary_sensor:
YOUR_SENSOR:
friendly_name: "Friendly name here"
device_class: motion
value_template: {{ is_state('sensor.YOUR_SENSOR_burglar', '8') }}
value_template: "{{ is_state('sensor.YOUR_SENSOR_burglar', 8) }}"
```
{% endraw %}