We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Checklist:
Release with the issue: 0.6.3
Last working release (if known):
Browser and Operating System: Chrome, Win10
Description of problem:
Consider this template:
decl_test_var_template: default: - VALUE: xxx card: type: markdown content: '[[VALUE]]'
and a card:
type: vertical-stack cards: - type: custom:decluttering-card template: decl_test_var_template variables: - VALUE: '{{ states(''sun.sun'') }}' - type: custom:decluttering-card template: decl_test_var_template variables: - VALUE: >- {{ states('sun.sun') }} - type: custom:decluttering-card template: decl_test_var_template variables: - VALUE: >- {% if false -%} {{states('zone.home')}} {%- else -%} {{states('sun.sun')}} {%- endif %} - type: custom:decluttering-card template: decl_test_var_template variables: - VALUE: >- {% if false -%} {{states('zone.home')}} {%- else -%} {{states('sun.sun')}} {%- endif %}
Here the indented template does NOT work:
- VALUE: >- {% if false -%} {{states('zone.home')}} {%- else -%} {{states('sun.sun')}} {%- endif %}
Javascript errors shown in the web inspector (if applicable):
Additional information:
The text was updated successfully, but these errors were encountered:
Found a solution:
type: custom:decluttering-card template: decl_test_var_template variables: - VALUE: " {% if false -%} {{states('zone.home')}} {%- else -%} {{states('sun.sun')}} {%- endif %} "
or just a workaround...
Sorry, something went wrong.
No branches or pull requests
Checklist:
Release with the issue: 0.6.3
Last working release (if known):
Browser and Operating System: Chrome, Win10
Description of problem:
Consider this template:
and a card:
Here the indented template does NOT work:
Javascript errors shown in the web inspector (if applicable):
Additional information:
The text was updated successfully, but these errors were encountered: