Fix templates

This commit is contained in:
Fabian Affolter 2016-10-22 12:57:27 +02:00
parent 0cc7334fa1
commit 85a252a337
No known key found for this signature in database
GPG Key ID: DDF3D6F44AAB1336

View File

@ -47,7 +47,7 @@ sensor:
resource: https://home-assistant.io resource: https://home-assistant.io
name: Release name: Release
select: ".current-version h1" select: ".current-version h1"
value_template: '{{ value.split(":")[1] }}' value_template: '{% raw %}{{ value.split(":")[1] }}{% endraw %}'
``` ```
### {% linkable_title Available implementations %} ### {% linkable_title Available implementations %}
@ -61,7 +61,7 @@ sensor:
resource: https://home-assistant.io/components/ resource: https://home-assistant.io/components/
name: Home Assistant impl. name: Home Assistant impl.
select: 'a[href="#all"]' select: 'a[href="#all"]'
value_template: '{{ value.split("(")[1].split(")")[0] }}' value_template: '{% raw %}{{ value.split("(")[1].split(")")[0] }}{% endraw %}'
``` ```
### {% linkable_title Get a value out of a tag %} ### {% linkable_title Get a value out of a tag %}