Updating source code while HA is running

Today I was debugging an integration and added logger output many times. I had to restart HA 10 times until I found the problem. Is it possible to run HA in a way so that module code is always loaded from hard disk and not cached and not precompiled?

1 Like

Were you writing an integration or adding a device to an integration? Module code? Be more specific. If you are writing YAML configuration files, most can be reloaded without a restart from the settings menu.

I was debugging python code belonging to an integration. Therefore I was changing the code and inserted logger.debug() commands and changed other things.