Closed Mariusthvdb closed 3 years ago
got this help from Thomas Loven on Discord (Thank you Thomas):
I'd guess you're seeing timing differences. What you need to do is move one step at a time in that chain, and whenever there's a shadowRoot you check if the parent element has a updateComplete property, and if so await that before continuing. Here's a function I keep reusing for this sort of stuff: https://github.com/thomasloven/lovelace-card-tools/blob/master/src/helpers.js
Next up: figure out what that means for the updateMoreInfo()
in custom-ui.js
fixed in 2021.5.28 https://github.com/Mariusthvdb/custom-ui/releases/tag/2021.5.28
never noticed before but clicking an entity on an
type: entity
card doesn't respect the settings we set under hidden attributes. As on an custom:mini-graph-card.tagging @CAB426 since you fixed this on the more-info before, please could you once more have a look?
eg: Lovelace card:
clicking the entity in the card results in:
while the same entity is correctly treated in a entities or glance card:
this happens on the latest version 20210511, but also on earlier versions. I guess the Lovelace cards use an other way of calling the more info on these cards, which I hope can be added to the
updateMoreInfo()
function in custom-ui.Thanks if you could have a look