Closed Mariusthvdb closed 2 years ago
label: >-
${"Favorites - " +
states['climate.thermostat'].attributes.current_temperature +
"°/" + states['climate.thermostat'].attributes.temperature +
"°"}
thanks! can confirm:
row:
type: section
label: >-
${'Above: ' + threshold}
works, and notice that we need the >-
instead of single >
would you be able to explain why the odd solution in my post above did work? without the ending }
anyways, thanks again.
Checklist:
Release with the issue: 1.3.6 Last working release (if known): dk Browser and Operating System: Any browser (Safari, Firefox, Chrome) on MacOS 12.0.1
Description of problem:
using:
I always try to use multi-line notation to prevent quoting issues, and therefor tested:
however this is not accepted, and errors with
Javascript errors shown in the web inspector (if applicable):
Additional information: since instruction show to always use {}, I can not understand the error about the unexpected token '}'... still, following that error output I unbelievingly tried:
and lo and behold, that seems to work alright. Must be a fluke of some kind. and user error?