Possible to edit library file via custom component?

I have used some custom components to override the install as per here: https://developers.home-assistant.io/docs/en/creating_component_loading.html

Now I have the situation where a new component has some bugs that I want to try to address but the fix I want to try is in a file in a library that the component uses

File “/usr/local/lib/python3.6/site-packages/nessclient/client.py”

Can I use a path to override this file in custom components? If not is there an easy way to make a change to that file? I am using hassio v0.87.0 on a Raspberry Pi.

OK I think I worked it out. The dependency I want to edit is in

\hassio\config\deps\lib\python3.6\site-packages

So I was able to edit that. From experimenting this will get overridden if the dependency bumps up a version. So I just need to keep an eye on that.

1 Like