Hello! Is possible reload my custom component without restarting docker container? I try to reload custom components in integrations, but the code is always the old revision, only with a full restart the code will be refreshed
Home Assistant itself only loads the code of custom components on startup. This is true regardless of how you run Home Assistant (HAOS, docker, core in venv, devcontainer, etc). Reloading an integration from the UI causes HA to unload it’s config entry and recreate it. But the code doing that work for the integration isn’t changed, it’s still what was loaded at startup.
You don’t actually have to restart the whole container though if you don’t want to. You can just use the restart HA option like normal from the top of settings in the HA UI. The code is changed in the container so it’ll use the latest code on startup. Or stop the task and start it again from vscode.
Sure, actually I restart the task from VSCode. Is a bit faster than restart the container, but the full HA restart is very slow, and without any custom components loaded. Maybe I can delete all components (eg, philips hue, modbus, ecc), so they will be not loaded or parsed at startup?