Skip to content

Commit 0148045

Browse files
nkgilleyfabaff
authored andcommitted
fix quotes (home-assistant#1547)
1 parent 0dbdfaa commit 0148045

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/_components/switch.template.markdown

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ switch:
2727
- platform: template
2828
switches:
2929
skylight:
30-
value_template: {% raw %}'{{ is_state('sensor.skylight', 'on') }}'{% endraw %}
30+
value_template: {% raw %}"{{ is_state('sensor.skylight', 'on') }}"{% endraw %}
3131
turn_on:
3232
service: switch.turn_on
3333
entity_id: switch.skylight_open
@@ -64,7 +64,7 @@ switch:
6464
- platform: template
6565
switches:
6666
copy:
67-
value_template: {% raw %}'{{ is_state('switch.source', 'on') }}'{% endraw %}
67+
value_template: {% raw %}"{{ is_state('switch.source', 'on') }}"{% endraw %}
6868
turn_on:
6969
service: switch.turn_on
7070
entity_id: switch.source
@@ -83,7 +83,7 @@ switch:
8383
switches:
8484
blind:
8585
friendly_name: 'Blind'
86-
value_template: {% raw %}'{{ is_state_attr("switch.blind_toggle", "sensor_state", "on") }}'{% endraw %}
86+
value_template: {% raw %}"{{ is_state_attr('switch.blind_toggle', 'sensor_state', 'on') }}"{% endraw %}
8787
turn_on:
8888
service: switch.toggle
8989
entity_id: switch.blind_toggle
@@ -102,7 +102,7 @@ switch:
102102
switches:
103103
skylight:
104104
friendly_name: 'Skylight'
105-
value_template: {% raw %}'{{ is_state('sensor.skylight.state', 'on') }}'{% endraw %}
105+
value_template: {% raw %}"{{ is_state('sensor.skylight.state', 'on') }}"{% endraw %}
106106
turn_on:
107107
service: switch.turn_on
108108
entity_id: switch.skylight_open

0 commit comments

Comments
 (0)