Hi
I’m trying again to setup a dev environment on my Debian 12 computer following tho official HA dev documentation.
I go the way with VSC although I’m very annoyed by the fact to install Microsoft stuffs to write open source code !
So far I think I have succeeded to setup the dev environment including Docker and so according at ha dev doc I tried to create the scaffold script to create the structure of the integration automatically.
I run the python command in the terminal of the dev instance of HA in VSC. I answer all the questions (it’s an integration basic for command through telnet of some video devices) and then at the end it executes the script that fails with that:
Scaffolding config_flow for the blustreamacm integration...
Writing homeassistant/components/blustreamacm/config_flow.py
Writing homeassistant/components/blustreamacm/const.py
Writing homeassistant/components/blustreamacm/__init__.py
Writing tests/components/blustreamacm/conftest.py
Writing tests/components/blustreamacm/test_config_flow.py
Updating blustreamacm manifest: {'config_flow': True}
Updating blustreamacm strings: ['config']
Running hassfest to pick up new information.
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/workspaces/ha-core/script/scaffold/__main__.py", line 117, in <module>
sys.exit(main())
~~~~^^
File "/workspaces/ha-core/script/scaffold/__main__.py", line 70, in main
subprocess.run(["python", "-m", "script.hassfest"], **pipe_null, check=True)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/subprocess.py", line 577, in run
raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['python', '-m', 'script.hassfest']' returned non-zero exit status 1.
(ha-venv) vscode ➜ /workspaces/ha-core (dev) $
Any ideas what’s wrong there as my basic knowledge of python are lost there
Thanks
Vincèn