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

fix-update-on-entity-delete #105

Merged

Conversation

EdLeckert
Copy link
Contributor

@EdLeckert EdLeckert commented Sep 3, 2023

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. 😁

(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.

@daringer daringer merged commit 1ea7408 into custom-cards:master Sep 4, 2023
@EdLeckert EdLeckert deleted the fix-update-on-entity-delete branch September 4, 2023 14:24
@EdLeckert EdLeckert mentioned this pull request Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants