-
Notifications
You must be signed in to change notification settings - Fork 26
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
table does not automatically update after entity deletion #104
Comments
Could you elaborate? |
Clicking a row brings up the more-info dialog. Click the gear icon, scroll down to the bottom left, click DELETE. The entity is deleted, but the table does not update. Already fixed in next PR: Feel free to test it if you like. |
Fixed by: Check for change of row count before checking max of last_updated. |
So, this is about entities made in UI. Currently entities which may be created in UI do NOT have list attributes. Will it be possible with this PR? |
The situation you describe is exactly what I have done with my wine database integration. A single entity represents the wine inventory, and a single attribute of that entity holds a list of dictionary items, one for each bottle. Clicking any row brings up the same more-info dialog, as you know. And deleting the entity from that dialog would wipe out the entire inventory, leaving an empty table. So, not particularly useful in this case. Does that answer your questions? |
@EdLeckert
Now here is a really useful application for the HA ))) |
#103 dramatically helps reducing table updates, nevertheless deleting one entity (click a row in table, choose settings, choose delete) does not reload the table. @EdLeckert we might need to improve the no-update-condition to catch this, ideas?
Generally this is more or less the case that
last_updated
will stay the same, but the (matched) entities change...The text was updated successfully, but these errors were encountered: