Open woniol opened 8 months ago
I can confirm and provide a screenshot.
The space in the middle is created by 6 card with "show_empty: false".
These gaps driving me crazy. It seems more like Sections bug due same situation with conditional card right now.
🙏
Any news? I still can't use the sections due to this bug and I don't even know if the problem is from auto-entities or Lovelace :(
Hi @thomasloven, I have the same problem. The problem with conditional cards has been fixed here, but empty auto-entities cards still occupy space. See attached screenshots.
Edit mode:
Actual display:
I was going to open a bug on HA, as a follow-up to https://github.com/home-assistant/frontend/issues/20352 (where they state the solution for the problem is using the new Visibility option, but that effectively causes us to recreate and duplicate the filters from auto-entities; not a solution). My thesis was that they should reduce --row-height
and/or make it themeable, so we can fix it for our specific scenarios...
However, while writing it, I realize the default entities-filter
does not show this behavior. Thus, I guess this is a bug with this custom card, which should not generate an empty card component on the UI (instead of generating an empty one).
Any updates or solutions to fix this even if manually?
Any news on this? Highly limit the usage of the card😕
I've made a PR that fixes this issue - I hope @thomasloven has time to look at it 😄
@MrAdam It seems the latest version of HA has fixed this for me
@MrAdam It seems the latest version of HA has fixed this for me
Same here! Well, that's great, since it looks like @thomasloven is not active at the moment 👍 I'll leave my PR though, as it makes the code mimmic how other components does it.
One thing I did notice, is that if it's empty, I can't see it in edit mode, which makes it hard to edit using the GUI. I might look into that if this repo ever becomes active again 😄
It looks like this is still an issue if a hidden auto-entities
card is the only thing in a section:
The large gap in the top left is where the auto-entities
card is.
It looks like this is still an issue if a hidden
auto-entities
card is the only thing in a section:The large gap in the top left is where the
auto-entities
card is.
Can you try the fix from my branch and see if it works? If yes, then maybe we should get it merged.
I saw a mentioned in the thread that this was fixed by an update to HA itself, but I still seem to be having the issue This gap in my vertical stack card is a few auto entities cards that are hidden most of the time
How would I go about testing this branch if I wanted to?
@MrAdam sadly it doesn't fix it.
Tried with the card both inside and outside a section.
If _showempty is set to false, card is shown in the Sections view, taking additional space. Not sure if this is for auto-entities card or the new Sections view case?