dalinicus / homeassistant-acinfinity

AC Infinity integration for Home Assistant for UIS based controllers
MIT License
75 stars 4 forks source link

Switch to DataUpdateCoordinator #22

Closed dalinicus closed 11 months ago

dalinicus commented 11 months ago

Currently, data is fetched when HA asks a sensor for new data, which calls an throttled update method. This is not the most efficient way of fetching data, and it seems to cause an unnecessary delay on updating controls on startup.

We should switch to a DataUpdateCoordinator, which is the documented way of updating data.

https://developers.home-assistant.io/docs/integration_fetching_data/