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

Refresh chores/tasks after a generic service #271

Merged

Conversation

karwosts
Copy link
Contributor

After calling a generic service for chores or tasks, force refresh their data.

Mainly did this to improve the response time after adding a task through the lovelace card UI, so that it visually appears in the list quickly. But could be useful for other service calls as well.

It could apply to other entity types other than chores or tasks, but I don't know as much about them so I'm not sure which are valid entities for force_update_entity.

Fix #266

@isabellaalstrom isabellaalstrom merged commit 073a214 into custom-components:master Apr 19, 2023
@karwosts karwosts deleted the refresh-after-generic branch April 24, 2023 13:35
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

Successfully merging this pull request may close these issues.

Feature request: reload data service
2 participants