thomasloven / lovelace-fold-entity-row

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

Filter-entity doesn't work #152

Closed mikosoft83 closed 3 years ago

mikosoft83 commented 3 years ago

My Home Assistant version: 2021.4.5

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

What I am doing: I added type: entity-filter in the entities: list of fold-entity-row card

What I expected to happen: see the entity-filter. The entity-filter config works when I put it in a standalone card.

What happened instead: Unknown type encountered: entity-filter

Minimal steps to reproduce: as mentioned in "What I am doing"

# The least ammount of code possible to reproduce my error

type: entities
entities:
  - type: 'custom:fold-entity-row'
    head: some.entity
    entities:
      - type: entity-filter
        entities:
          - some.entity
        state_filter:
          - on

# End of code

Error messages from the browser console:

row entity-filter Error: Unknown type encountered: entity-filter at d (chunk.1f510d4b62a23dbb7a38.js:formatted:5364) at c (chunk.1f510d4b62a23dbb7a38.js:formatted:5302) at Module.a (chunk.1f510d4b62a23dbb7a38.js:formatted:5494) at HTMLElement._createRow (fold-entity-row.js:1) at async Promise.all (index 0) at async https:/192.168.0.200:8123/hacsfiles/lovelace-fold-entity-row/fold-entity-row.js:1


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

thomasloven commented 3 years ago

entity-filter is a card, not a row.