Closed ildar170975 closed 2 years ago
Yes. That's what auto-entities does. It "Automatically populate lovelace cards with entities matching certain criteria."
You can change this somewhat with card_param
, but not to this extent. That would get much too messy.
Yes. That's what auto-entities does. It "Automatically populate lovelace cards with entities matching certain criteria."
OK, but the card is supposed to fill the "entities" option of another card (which is a list), not "entity", am I right?
Sorry. I read too many issues yesterday.
What auto-entities does in your case is populate the cards:
list, as expected. But just like if it was an entities:
list it fills it with
- entity: sensor.xxx
any_options: go here
- entity: sensor.yyy
any_options: go here
I.m.o. erroring out on extra properties should be considered a bug in apexchart-card. Unused properties should just be ignored. Otherwise that would break the card with e.g. card-mod or even if something changes in Home Assistant, like the (relatively) recent addition of view_layout for cards...
Thomas, I got your point, thank you!
Let's create a stack of graph cards.
Here is one graph card w/o auto-entities:
The code for the stack:
The output:
Seems that
auto-entiites
inserts anentity
option into the destination card. Sinceapexcharts-card
does not accept extraneous options - the error is shown.The error is not shown when using with
history-graph
card since thehistory-graph
accepts extraneous options:But the
apexcharts-card
gives an error: