custom-components / grocy

Custom Grocy integration for Home Assistant
Apache License 2.0
164 stars 50 forks source link

Polling individual entities #247

Closed marcelvriend closed 2 years ago

marcelvriend commented 2 years 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 2 years ago

amazing! thank you very much.