marcokreeft87 / room-card

Show multiple entity states, attributes and icons in a single card in Home Assistant's Lovelace UI
MIT License
216 stars 36 forks source link

Unexpected line in the mobile view #21

Closed vdbrink closed 2 years ago

vdbrink commented 2 years ago

Only in the mobile presentation mode there is an extra unexpected line visible. Can this also be hidden if there are no entities under that line. Screenshot_20220904-111500_Home Assistant

marcokreeft87 commented 2 years ago

Can you share your yaml?

vdbrink commented 2 years ago

Here it is

type: entities
entities:
  - entity: sensor.x
    type: custom:room-card
    title: aquarium
    icon: mdi:fishbowl-outline
    info_entities:
      - entity: switch.x
        show_icon: true
        state_color: true
      - entity: switch.y
        show_icon: true
        state_color: true
      - entity: sensor.aquarium_temperatuur
marcokreeft87 commented 2 years ago

Why are you using the room card in an entities card? That's probably why the extra line is there.

vdbrink commented 2 years ago

Ah, yes that's it. Thank you so much! 👍🏻