custom-components / grocy

Custom Grocy integration for Home Assistant
Apache License 2.0
158 stars 48 forks source link

Refresh chores/tasks after a generic service #271

Closed karwosts closed 1 year ago

karwosts commented 1 year ago

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