maxwroc / battery-state-card

Battery state card for Home Assistant
MIT License
848 stars 38 forks source link

Card visibility #731

Open wwelles opened 1 month ago

wwelles commented 1 month ago

Is your feature request related to a problem? Please describe. I've started building dashboards that are dynamic based on context, but this card always leaves a blank space even when empty.

Describe the solution you'd like To this end, I was hoping that there was a way to hide this card when empty. Recently home assistant has added card visibility, and ideally there would be a way to do similar with your card: https://www.home-assistant.io/blog/2024/06/05/release-20246/#control-visibility-of-cards

Additional context N/A

wwelles commented 1 month ago

For additional context, my problem is similar to #521 however the difference is that I'm using the new sections view. Your card still shows display: none, however the container (<hui-card>) does not.