#How to force-reload a Python Library?

1 messages · Page 1 of 1 (latest)

languid jacinth
#

I have noticed that HA does not reload my external Python library when restarted.
I manually have to first uninstall the library using pip uninstall and then restart HA.
Of course I could alternatively delete the whole integration which depends on thie library, and then re-install the integration again, but that's very cumbersome.

Question: Is there a designed way to force reload an external library?
(Obviously I've tried the reload button for the integration, but it only reloads the integration and not the library)

This odd behavior makes it quite impractical to maintain an external library, so I find it unbelievable that this is by design (!)
I cannot be the first person ever to depend on an external library when building a HA integration.

shadow lion
candid mulch
#

Hello @languid jacinth,
Then you probably want the developers forums...

  • For reading, I recommend the developer documentation: https://developers.home-assistant.io/
  • After that if you have a question go to
    1: ⁠id:customize
    2: Customize
    and select
    3: I want to contribute
    and it will give you places to ask such questions...
#

I had a copy-paste for it...

shadow lion
#

most integrations do use external libraries though. you specify version changes in the manifest file i think? but yeah dev documentation and/or dev support

languid jacinth