Newby question. Which is the "recommended" way to mantain and version track (git) a custom integration?

So please (please!) bear with me.

I want to develop a custom integration and I am lost in how I am supposed to track code changes for it.

On the official page just instructs to clone the whole Home assistant repository which of course will be hell to keep on sync.

I saw there a couple of repos that can be used as templates like this one

But then there the symbols do not resolve completely, for example :

How do you mantain your integrations so that you can track changes (git) and also resolve all needed symbols for integration :frowning: ?

thanks

The Home Assistant documentation is aimed at developing for Home Assistant, not custom components, so that is not good match.

I have homeasssistant and homeassistant-stubs in the dev dependencies for my custom integrations (not sure if the stubs are still needed). I then just install the dev dependencies in the virtualenv I am using and it all resolves fine.

For reference, this is one of my integrations yamaha_ynca. Not saying this is the best way to do it, but it works for me.

Thanks I will check it!