"_a.entries is not a function" error in entities card with a template

I’m sure I’m doing something stupid.
I’m getting

_a.entries is not a function

for this card

type: entities
entities: >-
  {{ states.automation | map(attribute="entity_id") | list }}
state_color: true

I’ve tried testing the template in the developer tools and it does return a list of items.
I’ve also tried a few variations on the syntax above but all give the same error :(.

1 Like

thank you very much for the hyper quick reply! i was ready to swear i had seen this code elsewhere and i had made a note in notepad to test it (a few days ago). i’m sure i must be mistaken. appreciate your help, i’ll look into card-mod.