Devcontainer Custom Component Initialization (First steps to create new component)

Hello to all,
I decided to create my own FastApi service so that I could integrate not only HA services

There is a problem with the fact that there are no normal instructions on how to create a new component inside the div container from scratch (there are only pieces in the documentation)

Therefore, there will be a short instruction below on how I did it, and I hope it will help you. The instructions may contain errors, as the steps were taken during several days of anger that nothing was working(

Instructions

  1. You need to do step “Developing with Visual Studio Code + devcontainer” from this website
    Set up development environment | Home Assistant Developer Docs
  2. After entering inside devcontainer you need to check if setup was configured correctly
    hass -c config
    
  3. Than you need to write this command in main folder and do all steps to create folder with you custom component
    python3 -m script.scaffold integration
    
    Your new component now in /homeassistant/components/<your component>
  4. Now create new folder
    mkdir /config/custom_components
    
  5. Copy you new folder after Step 3 into /config/custom_components/<your component>
  6. Add in manifest.json key-value "version": "0.0.1"

After this steps your service must be shown in Setting -> Devices & services -> + ADD INTEGRATION