Could someone just point which one of this two options is the most suitable for developing custom components?
I remind that with the Generic Custom Component — ESPHome method we have to include a custom_component section (with some lambda code) in the yaml file and include an C++ .h file following the several examples in the docs. By the way, I already solved the problems I had with the inclusion of others libraries.
I still not tried the External Components — ESPHome method, but it seems more general since besides de C++ code I also find some .py code that seems to help the Home Assistant integration. It is a pity, this method is much less covered in the docs!
Sorry for being a bit late
What will you like to be implementing? a sensor, switch
the best docs I have found for custom sensor but the same principles can be applied for others