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
198 stars 23 forks source link

fix-update-on-entity-delete #105

Closed EdLeckert closed 10 months ago

EdLeckert commented 10 months ago

Table now updates on entity delete.

Fixes:

I had this code in my head before the original PR, but hadn't found a use case for it yet. Guess I couldn't bear to delete my precious entities. :grin:

(I had tested it by deleting list items in an attribute and by adjusting the config to remove entities from scope, but never actually deleted an entity. Sigh...)

Code is the same as before with added row count check. If row count is different, no need to check last_updated.