Entities need to be an array -> Lovelace custom layout-card

I am trying to use the Lovelace custom layout-card to include a picture as the first glance card in a row of 4 cards.

However, I cannot seem to get the code right. I am getting an “Entities need to be an array” for the glance card type entities (see screenshot).

Anyone able to assist?

Thanks! :slight_smile:

Never mind, I managed to find a solution myself…

For those interested, see attached file.!

1 Like

For future reference, this is an array in YAML:

- cat
- bat
- rat
- hat

The equivalent in JSON:

[ "cat", "bat", "rat", "hat"]
6 Likes