Open VikeDragon opened 1 year ago
I'm having this exact same issue on all cases of my auto-entities card. Just change show_empty to true and what used to appear with it set to false appear.
Make sure you have cleared your cache. This is exactly the problem that 1.12.1 fixes.
Make sure you have cleared your cache. This is exactly the problem that 1.12.1 fixes.
I cleaned the cache, refreshed the page, reopened the browser - card empty
I'm having this issue as well. No errors in the console. It's also only happening on some devices and seems intermittent. I'm most easily able to reproduce it on Fully Kiosk.
Going to take a swing at debugging to see what's going wrong.
Ok, first update is that there's actually a hidden <hui-error-card>
element with no content (other than the alert icon) that's being added inside the auto-entities card.
I don't know if this is standard practice for the error card to be here and just displayed when there's an error? Doubtful of that, though.
What's strange is that there's nothing logged to the console.
Ok while debugging I came to main.ts#L171 where the error
property on errorCard._config
is:
Custom element doesn't exist: mushroom-chips-card.
So it looks like it has something to do with custom cards not being rendered properly sometimes.
It appears that this code was added as part of this commit: https://github.com/thomasloven/lovelace-auto-entities/commit/69fbb36399c08f896112bbb770ad7d72baaf014d with a subject of "Improve error hiding" (it's really disappointing so much OSS doesn't include body's in their commit messages explaining the "why"). It seems a bit odd to want to hide errors, but I think I see the reasoning behind it.
There certainly must a bug in the error hiding logic, because this error should not be hidden. It appears it was only meant to hide a few specific errors.
Otherwise, while this made the problem more difficult to troubleshoot, the underlying problem for myself at least is that it isn't able to render the custom mushroom-chips-card
.
I'd be interested to hear if others here are having the same issue. Do you also have a hidden error?
I'm also interested to hear ideas on why it isn't able to find the custom card in the first place. Especially intermittently.
Since release 1.12 (include last release 1.12.1) stopped showing cards? if the option is show_empty: false For example, if I insert the contents, the panel disappears, but if I remove line 57 (show_empty: false), then the panel is displayed normally. I cleaned the cache, refreshed the page, reopened the browser - it works without show_empty: false, but it does not show with it. with_show_empty_false.txt