Closed ghost closed 5 years ago
Posted to the vertical-stack repo also: https://github.com/custom-cards/vertical-stack-in-card/issues/23
I checked it, it's a problem with this card.
You have to build the ha-card
already in setConfig
, and then change it when the data arrives.
It will also solve the problem at first appears "Custom element doesn't exist: mini-graph-card
" for a few seconds:
You can't really expect custom cards to play nice with each other, however I've made some adjustments in https://github.com/kalkih/mini-graph-card/commit/3d48bb5668158fecdd05b3255cced1a2a2b985f0 which should solve some of the issues with using this card together with vertical-stack-in-card. There are still issues when nesting this card in a horizontal-stack inside a vertical-stack-in-card.
I checked it, it's a problem with this card. You have to build the
ha-card
already insetConfig
, and then change it when the data arrives. It will also solve the problem at first appears "Custom element doesn't exist: mini-graph-card
" for a few seconds:
To claim that the problem lies in this card is a bit of a stretch. You'll see some of the same compatibility issues with custom cards like the button-card. I don't know why I would start building the card in the setConfig function, that's not the intended use of the function..
You can now use the official Sensor Card if you are having this issues like this. It should integrate and work better with custom cards.
Unsure if this error is related to the vertical-card-stack custom card or this one or how they interact. Getting the following error when the view is refereshed.
https://duck.duckdns.org/local/custom_ui/vertical-stack-in-card.js?v=0.0.2:61:74 Uncaught TypeError: Cannot read property 'style' of null
The card also doesn't appear to integrate cleanly like other cards do into the vertical-card-stack. See imugr link. https://imgur.com/Vuer2xp (note the borders around the graph cards)
Relevant parts of my config: