custom-cards / flex-table-card

Highly Flexible Lovelace Card - arbitrary contents/columns/rows, regex matched, perfect to show appdaemon created content and anything breaking out of the entity_id + attributes concept
GNU General Public License v3.0
208 stars 26 forks source link

Issues with multiple excludes and regexp #1

Closed andreassolberg closed 5 years ago

andreassolberg commented 5 years ago

This does not work:

          exclude:
            - light\.fibaro.*
            - light.group_2

When I comment out the second line, it works:

          exclude:
            - light\.fibaro.*
            # - light.group_2

From the docs, multiple excludes should be allowed in a list, right? And the format is regexp.

daringer commented 5 years ago

hmmm, feels like a bug, let me check that

daringer commented 5 years ago

more than just a bug, simply messy code; fixed and re-worked regex stuff. Would be great if you could check, if it works for you as expected.

generally you can omit any * in the excludes, as any match will exclude the entity from the entity list.

daringer commented 5 years ago

@andreassolberg is this ok for you as this works right now, would close this issue then...

daringer commented 5 years ago

hope the issue is resolved for you, feel free to re-open it if it's not the case

closing...