Closed nickdos closed 3 years ago
relative_time(
needs a closing )
.
Did you read the issue description? I stated I tried relative_time()
and it didn't work.
I did. And there's clearly a )
missing in it.
OK - I didn't understand your answer. I thought "needs a closing" was equivalent to "needs a closure" (in the coding sense) and thus you were saying insert relevant code in here.
No worries.
Did a ) help?
Yes, the missing )
was the problem. I'm too used to using an IDE it seems - I wish LoveLace editor had syntax checking and highlighting. Sorry for the confusion.
I'm migrating some entities from regular Lovelace entities to
template-entity-row
entities and I'm struggling to show the simplesecondary_info: last-changed
feature.I thought this might work but It doesn't:
secondary: '{{ relative_time( states[config.entity].last_updated }}'
. This is for acover
entity and the second line is just blank using the above syntax.Thanks in advance.