Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entities still appear in unused entities #102

Closed
Cirrus94 opened this issue Mar 31, 2020 · 2 comments
Closed

Entities still appear in unused entities #102

Cirrus94 opened this issue Mar 31, 2020 · 2 comments

Comments

@Cirrus94
Copy link

When I create an auto-entities card, the entities which are shown in the card still appear in the unused entities area. Is there a solution? Thanks.

@daringer
Copy link

daringer commented Apr 1, 2020

Funny issue, as I have the very same issue with flex-table-card, even worse, as flex-table does not even ensure that .entities is an array, the unused entities view crashed more or less, but luckily these changes do fix this bug. (see here for more details)

Currently my understanding is that all cards, which are somehow dynamically populating their .entities will suffer from this drawback! Lovelace is searching unused entities by checking all cards for their .entites, but the cards are not evaluated, thus e.g., auto-entities & flex-table-card have an empty .entities array and lovelace cannot remove these entities from the unused entities view.

@thomasloven can you confirm this? or did I miss-understand this mechanism?

@thomasloven
Copy link
Owner

That's correct. The "unused entities" list does not actually evaluate the lovelace interface, but just scans the configuration. As such, dynamically populated entities are missed - and also do not pop in and out of the unused list on state changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants