thomasloven/lovelace-fold-entity-row

Cant remove empty header

KitHubek opened this issue · 3 comments

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:

  • Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).
  • Have made sure I am using the latest version of the plugin.
  • Have followed the troubleshooting steps of the "Common Problems" section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.
  • Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.

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

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