fsaris / home-assistant-zonneplan-one

Unofficial Zonneplan integration for Home Assistant
https://github.com/fsaris/home-assistant-zonneplan-one
MIT License
104 stars 17 forks source link

Fix blocking calls #118

Closed hmmbob closed 3 months ago

hmmbob commented 3 months ago

I've taken the approach of adding the VERSION to the constants (similar as HA does) and import that in the API calls instead of doing (expensive) file reads on manifest.json.

It does mean that the constant needs to be updated with the latest version number upon release, just as manifest.json needs to be updated.

Tested locally, works fine. Fixes #117

fsaris commented 3 months ago

Tnx for the fix