Skip to content

Commit 0e66f32

Browse files
authored
Fix incorrect template in example.
1 parent 74b7bb8 commit 0e66f32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/_components/switch.template.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ switch:
8484
switches:
8585
blind:
8686
friendly_name: 'Blind'
87-
value_template: {% raw %}'{{ state }}'{% endraw %}
87+
value_template: {% raw %}'{{ is_state_attr("switch.blind_toggle", "sensor_state", "on") }}'{% endraw %}
8888
turn_on:
8989
service: switch.toggle
9090
entity_id: switch.blind_toggle

0 commit comments

Comments
 (0)