Once I add config flow to my integration, I can rename entities through the GUI. However the names reset when I restart Home Assistant. How can I prevent this?
Oh I see, problem was that I was just restarting the Home Assistant Dev Container, and so I guess Home Assistant just didnât have time to save my updates. I chose Stop Server in the UI before restarting the Dev Container and it worked. 
Thanks for the article. Glad something to gude to get started. I have HA green device. I am assuming that I login to terminal (not Docker home assistant) and change folder to custom_components and run pip to install cookie cutter template. Please let me know otherwise.
It would be much easier developing your custom component by running the devcontainer in vs-code from the core repository. Then creating a config/custom_components directory in that checked-out repository. It will be much faster to spin up and restart as you make changes.
To create the initial structure, Iâd just create a virtualenv on your local machine, activate it, pip install cookiecutter, then use cookiecutter to create your project template.
Do you manually copy custom component into the devcontainer? Is there a way to sync the custom component repo to the devcontainer?
The config directory will be mounted into the devcontainer so you shouldnât need to sync anything.
So, if you have the core repo checked out and create a config directory at the root and a custom_components directory within the config directory then you can edit files there and HA will see the custom component. Note you will have to restart the devcontainer when making changes to the python files.
example: /path/to/core/config/custom_components/tutorial if your custom component is named tutorial and exists in a directory at this location.
Got it, thanks.
Granted, Iâm a newbie but tutorials are generally targeting newbies so here goes⌠The most obvious thing is the very first command
pip install cookiecutter
Where should this be executed? What are the prerequisites? I have installed the âTerminal and SSHâ add-on and I entered it there but it shows âbash: pip command not foundâ so not really off to a great start.
Have you developed software before?
That add-on gives terminal access to your HA server. One doesnât normally develop software directly on a server.
The normal way is to do this on a separate computer for development and an environment set up. In this case, you need Python and a virtual environment. You will then execute that command in the virtual environment.
I wouldnât recommend developing on your HA server. Normally you would develop on your laptop/desktop. The tutorial was aimed at those with some python experience.
If you are interested in learning more, Iâd start by reading about uv to get your local environment setup and python installed.