Switch to enable/disable a custom component from web interface

Hello,

Is it possible to have a switch button to enable or disable a custom component ?
I want to avoid to go through the configuration.yaml file and do it directly on lovelace interface.

Thanks.

No, because enabling or disabling those requires editing your configuration (and restarting Home Assistant)

So no way at all ? Or a trick ?

No way. You’d have to build your own custom component that could edit the config file for you, with all the risks and challenges that brings.