From 0148045a7111e08e8bc69da3a622101eb0372cd3 Mon Sep 17 00:00:00 2001 From: Nolan Gilley Date: Tue, 6 Dec 2016 14:58:01 -0500 Subject: [PATCH] fix quotes (#1547) --- source/_components/switch.template.markdown | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/_components/switch.template.markdown b/source/_components/switch.template.markdown index 25a05f6a4e4..8ff14ceec6c 100644 --- a/source/_components/switch.template.markdown +++ b/source/_components/switch.template.markdown @@ -27,7 +27,7 @@ switch: - platform: template switches: skylight: - value_template: {% raw %}'{{ is_state('sensor.skylight', 'on') }}'{% endraw %} + value_template: {% raw %}"{{ is_state('sensor.skylight', 'on') }}"{% endraw %} turn_on: service: switch.turn_on entity_id: switch.skylight_open @@ -64,7 +64,7 @@ switch: - platform: template switches: copy: - value_template: {% raw %}'{{ is_state('switch.source', 'on') }}'{% endraw %} + value_template: {% raw %}"{{ is_state('switch.source', 'on') }}"{% endraw %} turn_on: service: switch.turn_on entity_id: switch.source @@ -83,7 +83,7 @@ switch: switches: blind: friendly_name: 'Blind' - value_template: {% raw %}'{{ is_state_attr("switch.blind_toggle", "sensor_state", "on") }}'{% endraw %} + value_template: {% raw %}"{{ is_state_attr('switch.blind_toggle', 'sensor_state', 'on') }}"{% endraw %} turn_on: service: switch.toggle entity_id: switch.blind_toggle @@ -102,7 +102,7 @@ switch: switches: skylight: friendly_name: 'Skylight' - value_template: {% raw %}'{{ is_state('sensor.skylight.state', 'on') }}'{% endraw %} + value_template: {% raw %}"{{ is_state('sensor.skylight.state', 'on') }}"{% endraw %} turn_on: service: switch.turn_on entity_id: switch.skylight_open