custom-components / grocy

Custom Grocy integration for Home Assistant
Apache License 2.0
156 stars 47 forks source link

Polling individual entities #247

Closed marcelvriend closed 1 year ago

marcelvriend commented 1 year ago

Because each entity has its own specific endpoint, it's better to do the polling for each individual entity. With the current coordinated polling, if any error occurs all entities become unavailable. Also this change allows for simultaneously updates, resulting in a faster overall refresh. And loading the integration no longer waits for the refresh to complete. It keeps trying to refresh unavailable entities (the error is only logged once).

There are no breaking changes.

Fixes #238, Fixes #245

grossqx commented 1 year ago

amazing! thank you very much.