iantrich / restriction-card

🔒 Apply restrictions to Lovelace cards
MIT License
259 stars 22 forks source link

unused entities shows entities with restriction-card type #21

Closed Thuurke closed 4 years ago

Thuurke commented 4 years ago

Checklist:

Release with the issue: HA 0.107.5 Restricted-card 1.1.9

Last working release (if known):

Browser and Operating System:

Description of problem: I use the restriction-card. When an entity is used as in below code the unused entites list still shows the entity.

        entities:
          - card:
              entity: automation.available_ikea_lag14_01
            restrictions:
              block: true
            type: custom:restriction-card
            row: true

If I replace above code by

        entities:
          - entity: automation.available_ikea_lag14_01

the entity is not listed in the unused entities

Javascript errors shown in the web inspector (if applicable):

Additional information:

iantrich commented 4 years ago

that's something for core to address, I won't be changing the configuration of the card, causing a breaking change, to address it