anand-p-r / fmi-hass-custom

Home Assistant Custom Component Supporting FMI Based Weather and Sensor Platforms
MIT License
59 stars 23 forks source link

FMI integration force HA to refresh forecast many times a second #39

Closed tdragon closed 3 years ago

tdragon commented 3 years ago

I noticed that on the latest HA the FMI integration refreshes the forecast many times a second. I think this is caused by 'async_request_refresh' called from update methods. This call also produces a lot of warnings about coroutine not been awaited.

I'll try my fix and create a PR when it is ready.

tdragon commented 3 years ago

There is a proposed fix: https://github.com/anand-p-r/fmi-hass-custom/pull/40 It also contains a few other improvements. Let me know if you want me to separate them.