thomasloven / lovelace-fold-entity-row

🔹 A foldable row for entities card, containing other rows
MIT License
587 stars 38 forks source link

Cant remove empty header #212

Closed KitHubek closed 2 years ago

KitHubek commented 2 years ago

My Home Assistant version: 2022.2.6

Fold-entity-row version (FROM BROWSER CONSOLE): 2.2.0

What I am doing: try to add card

What I expected to happen: see card without empty header

What happened instead: empty header appear like screenshots below:

foldtest

scr 2

Minimal steps to reproduce: just try add new card with fold entity row just like for example this:

# The least amount of code possible to reproduce my error
type: entities
entities:
  - type: custom:fold-entity-row
    head:
      type: section
      label: test
    open: false
    entities:
      - switch.xiaomi_plug_hades
show_header_toggle: false
state_color: true
# End of code

Error messages from the browser console: no error, just card looks not nice


By putting an X in the boxes ([X]) below, I indicate that I:

ildar170975 commented 2 years ago

What I expected to happen: see card without empty header

How is it possible since the 1st row is a "section" and no title is specified? Surely the 1st element is a divider with a top margin. Check this example: image

thomasloven commented 2 years ago

Please see the FAQ section in the readme, or the second NOTE: in the "Usage" section https://github.com/thomasloven/lovelace-fold-entity-row#usage

JonSilver commented 10 months ago

See also #242 for a solution.