-
-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Checklist:
- [x ] I updated to the latest version available
- [ x] I cleared the cache of my browser
Release with the issue:
1.3.7-beta.1
Last working release (if known):
Browser and Operating System:
Chrome 134.0.6998.36
Win10x64
Description of problem:
Consider this example:
type: vertical-stack
cards:
- type: custom:config-template-card
entities:
- sun.sun
variables:
VAR: states['sun.sun'].state
card:
type: markdown
content: ${VAR}
- type: custom:config-template-card
entities:
- sun.sun
variables:
VAR: states['sun.sun'].state
card:
type: markdown
content: '${VAR}'
- type: custom:config-template-card
entities:
- sun.sun
variables:
VAR: states['sun.sun'].state
card:
type: markdown
content: "${VAR}"
- type: custom:config-template-card
entities:
- sun.sun
variables:
VAR: states['sun.sun'].state
card:
type: markdown
content: >-
${VAR}
All cards only differ in a way of using a template:
-- no quotes
-- in single quotes
-- in double quotes
-- with >- multiline-yaml syntax
Now let's test with several templates in a string:
type: vertical-stack
cards:
- type: custom:config-template-card
entities:
- sun.sun
variables:
VAR: states['sun.sun'].state
card:
type: markdown
content: ${VAR} ${VAR}
- type: custom:config-template-card
entities:
- sun.sun
variables:
VAR: states['sun.sun'].state
card:
type: markdown
content: '${VAR} ${VAR}'
- type: custom:config-template-card
entities:
- sun.sun
variables:
VAR: states['sun.sun'].state
card:
type: markdown
content: "${VAR} ${VAR}"
- type: custom:config-template-card
entities:
- sun.sun
variables:
VAR: states['sun.sun'].state
card:
type: markdown
content: >-
${VAR} ${VAR}
In all cases it gives an error:

Using more quotes gives a result - but values are embraced by quotes:
type: vertical-stack
cards:
- type: custom:config-template-card
entities:
- sun.sun
variables:
VAR: states['sun.sun'].state
card:
type: markdown
content: '''${VAR} ${VAR}'''
- type: custom:config-template-card
entities:
- sun.sun
variables:
VAR: states['sun.sun'].state
card:
type: markdown
content: "'${VAR} ${VAR}'"
- type: custom:config-template-card
entities:
- sun.sun
variables:
VAR: states['sun.sun'].state
card:
type: markdown
content: '"${VAR} ${VAR}"'
- type: custom:config-template-card
entities:
- sun.sun
variables:
VAR: states['sun.sun'].state
card:
type: markdown
content: >-
'${VAR} ${VAR}'
Javascript errors shown in the web inspector (if applicable):
Additional information:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working

