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.
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 onmanifest.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