Closed basbruss closed 1 year ago
I can't reproduce, that is strange...
- type: custom:button-card
entity: switch.skylight
name: >
[[[
return variables.test
]]]
variables:
test: >
[[[
return helpers.relativeTime(entity.last_changed)
]]]
Are there any other templates in the config template template: card_title
?
Somehow by many times refreshing the frontend cache and restarting the dev-container the issue dissappeared
Checklist
Describe the bug
It only works when it is used directly in a YAML key as
name
orlabel
It does not work when it's included in a variable.Version of the card Version: v4.0.0-dev17
To Reproduce This is the configuration I used:
It renders the error
Screenshots
Expected behavior Both cards should return the same values
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.