Access an entities list from my custom card (SOLVED)

Hi!

I am trying to make a card that has a simple table of stock prices and changes. More to learn than really doing anything with it longer term. I have ananza stock sensor set up and working.

I’ve defined a new custom card and can get it to display, and I can even make a little table in it. I am passing in a single entity.

The problem is that when I put the card in a dashboard I want to pass in a number of entities… so like

Entities:
- entity: sensor.stock1
- entity: sensor.stock2

I cannot figure out how to access that in the custom card javascript.

I can access the single entity like so:

const entityId = this.config.entity;

How do I access the Entities part of the configuration?

Sorry if this is obvious!

EDIT: So yes, it was obvious. For some reason I did not make the connection that the config object coming in was dynamically populated with the config. I was thinking entity was a function that was always there… Sorry.

For others:
If you are following the example for creating a custom card in the documentaiton. You can access entities as just config.entities

At least I was right it was obvious.

hello bchmura
Is that possible to show me the full JS ? i will try to do same