thomasloven / lovelace-auto-entities

🔹Automatically populate the entities-list of lovelace cards
MIT License
1.32k stars 119 forks source link

show_empty in Sections view #433

Open woniol opened 8 months ago

woniol commented 8 months ago

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?

luisleonardo commented 8 months ago

I can confirm and provide a screenshot.

The space in the middle is created by 6 card with "show_empty: false".

image

Drun555 commented 7 months ago

These gaps driving me crazy. It seems more like Sections bug due same situation with conditional card right now.

🙏 IMG_6983

luisleonardo commented 6 months ago

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 :(

spartan117aut commented 6 months ago

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: image

Actual display: image

igorsantos07 commented 5 months ago

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). image

skynet01 commented 3 months ago

Any updates or solutions to fix this even if manually?

christian1986 commented 2 months ago

Any news on this? Highly limit the usage of the card😕

MrAdam commented 2 months ago

I've made a PR that fixes this issue - I hope @thomasloven has time to look at it 😄

pmharris77 commented 1 month ago

@MrAdam It seems the latest version of HA has fixed this for me

MrAdam commented 1 month ago

@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 😄

jackwilsdon commented 4 weeks ago

It looks like this is still an issue if a hidden auto-entities card is the only thing in a section:

image

The large gap in the top left is where the auto-entities card is.

MrAdam commented 4 weeks ago

It looks like this is still an issue if a hidden auto-entities card is the only thing in a section:

image

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.

sambarre commented 4 weeks ago

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 image 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?

jackwilsdon commented 3 weeks ago

@MrAdam sadly it doesn't fix it.

image

image

Tried with the card both inside and outside a section.