How to determine actual /config path in Python

Thank you. It looks like that’s the appropriate piece of code that does the bind mounts for the different volumes as seen by the add-on.

But then how to get that information out of docker/the supervisor?

I’ve looked at the supervisor API calls Endpoints | Home Assistant Developer Docs and the mount API calls only give details of all mounts known to the supervisor, not to the specifics per add-on.

Looking at the add-on API calls Endpoints | Home Assistant Developer Docs there doesn’t appear to be one that lists the bind mounts either.

But if I get the token from the SUPERVISOR_TOKEN environment variable and call the API /addons/self/info I can at least get the slug name and from there derive the true /config path

Unless anyone has any better ideas?