Skip to content

Building integrations - command fails without first installing requirements #2430

@chelming

Description

@chelming

When following the Building Integrations guide in VSC dev container, when running python3 -m script.scaffold integration and following the prompt, script.hassfest will run following the completion. If you don't first install the requirements, script.hassfest will fail with
script.hassfest ModuleNotFoundError: No module named 'numpy'

I'm guessing there should be instructions for running pip install -r requirements_all.txt (or one of the other requirements files. I'm not familiar enough to say which is appropriate.

Alright, so it's time to write your first code for your integration. AWESOME. Don't worry, we've tried hard to keep it as easy as possible. From a Home Assistant development environment, type the following and follow the instructions:
```shell
python3 -m script.scaffold integration
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions