Skip to content

Commit 75d78c1

Browse files
authored
Correct ' and " in the sun template example
1 parent 99460b8 commit 75d78c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/_docs/scripts/conditions.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,15 @@ condition:
144144
condition: and # 'twilight' condition: dusk and dawn, in typical locations
145145
conditions:
146146
- condition: template
147-
value_template: {% raw %}'{{ state_attr('sun.sun', 'elevation') < 0 }}'{% endraw %}
147+
value_template: {% raw %}'{{ state_attr("sun.sun", "elevation") < 0 }}'{% endraw %}
148148
- condition: template
149-
value_template: {% raw %}'{{ state_attr('sun.sun', 'elevation') > -6 }}'{% endraw %}
149+
value_template: {% raw %}'{{ state_attr("sun.sun", "elevation") > -6 }}'{% endraw %}
150150
```
151151

152152
```yaml
153153
condition:
154154
condition: template # 'night' condition: from dusk to dawn, in typical locations
155-
value_template: {% raw %}'{{ state_attr('sun.sun', 'elevation') < -6 }}'{% endraw %}
155+
value_template: {% raw %}'{{ state_attr("sun.sun", "elevation") < -6 }}'{% endraw %}
156156
```
157157

158158
#### Sunset/sunrise condition

0 commit comments

Comments
 (0)