Custom component for library file

Hi, I would like to make changes to a library file that an integration uses.

The original file is situated here: /usr/local/lib/python3.9/site-packages/pyebox/client.py
If I replace the original file with a modified one, everything works. The only thing is that at each reboot, the file is overwriten so I lose the modification.

I would like to know if there is something I could do to make the changes permanent?
Maybe something like the custom components for integrations but for library file.

Thank you

Yes, copy the /usr/local/lib/python3.9/site-packages/pyebox directory into your config directory and HA will pick it up instead of what’s in the container. You should end up with a directory structure of /config/pyebox/....

Just remember that you did that so you can remove it later if you want to revert to the container version.

Thank you Rob! it work like a charm.