Concatenate text and item in widget title

how can add a text before a item state?

That’s works:

- component: oh-list-item
      config:
        title: = (items[props.AsIsTempItem].displayState) + "°C"

But I want to start with a text like “Current temp is 15 °C”:

- component: oh-list-item
      config:
        title: "Current temp is " + = (items[props.AsIsTempItem].displayState) + "°C"

But that is not working :frowning:
Which is the correct syntax?

The equal should be at the beginning

  title: `="Current temp is " + (items[props.AsIsTempItem].displayState) + "°C"`

2 Likes