I’d like to make some improvements to an integration which is part of core (IotaWatt). Looking for advice on the best way to setup my environment for this. What I’ve done so far:
- Fork home-assistant/core
- Modify this component inside, change the domain to
iotawatt_custom
inmanifest.json
andconst.py
- Add a version number in
manifest.json
- Copy my changes into my running HAOS under
custom_components/iotawatt_custom
- At this point, trying to add the integration fails with error: " Config flow could not be loaded (invalid handler specified)"
- To address that I ran
python3 -m script.hassfest
inside the homeassistant Docker container. That required installing 2 modules with pip (black and stdlib_list). Finally, the output of that script command is “Run from Home Assistant root”. - At this point it works, I am able to disable the original integration and add the custom one from the UI. I’m just wondering if this is the right way to do things.