Entity or entities?

Is there a difference from

    - type: 'custom:mini-graph-card'
      entities:
        - entity: sensor.temp_attic

and

    - type: 'custom:mini-graph-card'
      entities:
        - sensor.temp_attic

They both work, so which method should I use?

Obviously you can use either.

But usually people use version 1 for regular lists of entities where it’s supported and version 2 is required if you are going to modify the entity in some way like adding additional info to the entity. For example using “secondary_info:” requires version 2.

Thanks. Today is a good day for learning new things.

1 Like