[Containerized HA] Integration with dependency to specific Python library

One of my integrations needs a specific python library. If I restart the HA container, that particular library vanishes. Reinstalling it within a running container fixes the issue.

So. What would probably be the best way to fix that? What are your thoughts?
(I do not want to have a custom image that runs pip install somelibrary…)

If your custom integration has a proper “requirements” in manifest.json, that library version will be installed when your container starts.

If you only need it for yourself or development, the imho best way is to use the “custom deps deployment” addOn. :wink:

Find it here:

  "requirements": ["pyopensprinkler==0.7.6"],

As far as I can tell it does have the correct entry. Unfortunately, that does not seem to work.

There seems to be an error with the version numbers. PyPI is listing “0.7.6”, whereas the Github repo only has “0.7.3” as the latest version. Try it with “0.7.3” and see, if it works. :slight_smile:

I doubt that the version number is the problem. If i do a

pip install pyopensprinkler
[...]
Installing collected packages: pyopensprinkler
Successfully installed pyopensprinkler-0.7.6

inside the container and restart HA the integration works as it should.