thomasloven / lovelace-fold-entity-row

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

Group opened but collapsed #210

Closed mmkrysiak closed 2 years ago

mmkrysiak commented 2 years ago

My Home Assistant version: 2022.2.2

Fold-entity-row version 2.1.0

What I am doing: Open section, change card and back

What I expected to happen: Opened section/group of entities should be open or if section shows collapsed arrow on the right hand side should point down

What happened instead: arrow pointed up (suggested that section is open) but show section collapsed. To open it's necessary to click arrow twice image

Minimal steps to reproduce:

type: entities
entities:
  - type: custom:fold-entity-row
    head: light.posesja
    entities:
      - entity: light.wejscie
      - entity: light.wjazd
      - entity: light.palenisko
  - type: divider
  - type: custom:fold-entity-row
    head: light.halogeny
    entities:
      - entity: light.halogen_front
      - entity: light.halogen_garaze
      - entity: light.halogen_ogrod

Error messages from the browser console:


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

ildar170975 commented 2 years ago

Tried to simulate the case. Do not have a light group, used my own group.batteries group:

type: entities
entities:
  - type: custom:fold-entity-row
    head: group.batteries
    entities:
      - entity: sun.sun
      - entity: sun.sun
      - entity: sun.sun

изображение Works smooth w/o issues.


Also, items for a group may be filled automatically:

type: entities
entities:
  - type: custom:fold-entity-row
    head: group.batteries

изображение

thomasloven commented 2 years ago

What does "change card" mean?

mmkrysiak commented 2 years ago

I mean another dashboard page or another dashboard.

ildar170975 commented 2 years ago

If "change" means "switch to another tab" - then I have to confirm the issue. It happens not only with a group entity.

type: entities
entities:
  - type: custom:fold-entity-row
    head: sun.sun
    entities:
      - entity: sun.sun
      - entity: sun.sun
      - entity: sun.sun

How to reproduce:

  1. Unfold.
  2. Switch to another tab.
  3. Return to the 1st tab.
  4. The card is folded but the chevron button says "unfolded".
  5. Fold - then after a small animation the card is folded and the chevron says "folded"

Win10x64, Chrome

ildar170975 commented 2 years ago

Do not observe the issue on 2.2.0

mmkrysiak commented 2 years ago

It's OK now on 2.2.0. Thanks