You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`custom_components/integration_blueprint/__init__.py` | The component file for the integration.
30
-
`custom_components/integration_blueprint/api.py` | This is a sample API client.
31
-
`custom_components/integration_blueprint/binary_sensor.py` | Binary sensor platform for the integration.
32
-
`custom_components/integration_blueprint/config_flow.py` | Config flow file, this adds the UI configuration possibilities.
33
-
`custom_components/integration_blueprint/const.py` | A file to hold shared variables/constants for the entire integration.
34
-
`custom_components/integration_blueprint/manifest.json` | A [manifest file](https://developers.home-assistant.io/docs/en/creating_integration_manifest.html) for Home Assistant.
35
-
`custom_components/integration_blueprint/sensor.py` | Sensor platform for the integration.
36
-
`custom_components/integration_blueprint/switch.py` | Switch sensor platform for the integration.
37
-
`tests/__init__.py` | Makes the `tests` folder a module.
38
-
`tests/conftest.py` | Global [fixtures](https://docs.pytest.org/en/stable/fixture.html) used in tests to [patch](https://docs.python.org/3/library/unittest.mock.html#unittest.mock.patch) functions.
39
-
`tests/test_api.py` | Tests for `custom_components/integration_blueprint/api.py`.
40
-
`tests/test_config_flow.py` | Tests for `custom_components/integration_blueprint/config_flow.py`.
41
-
`tests/test_init.py` | Tests for `custom_components/integration_blueprint/__init__.py`.
42
-
`tests/test_switch.py` | Tests for `custom_components/integration_blueprint/switch.py`.
43
-
`CONTRIBUTING.md` | Guidelines on how to contribute.
44
-
`example.png` | Screenshot that demonstrate how it might look in the UI.
45
-
`info.md` | An example on a info file (used by [hacs][hacs]).
46
-
`LICENSE` | The license file for the project.
47
-
`README.md` | The file you are reading now, should contain info about the integration, installation and configuration instructions.
48
-
`requirements.txt` | Python packages used by this integration.
49
-
`requirements_dev.txt` | Python packages used to provide [IntelliSense](https://code.visualstudio.com/docs/editor/intellisense)/code hints during development of this integration, typically includes packages in `requirements.txt` but may include additional packages
50
-
`requirements_test.txt` | Python packages required to run the tests for this integration, typically includes packages in `requirements_dev.txt` but may include additional packages
51
-
52
-
## How?
53
-
54
-
If you want to use all the potential and features of this blueprint template you
55
-
should use Visual Studio Code to develop in a container. In this container you
56
-
will have all the tools to ease your python development and a dedicated Home
57
-
Assistant core instance to run your integration. See `.devcontainer/README.md` for more information.
58
-
59
-
If you need to work on the python library in parallel of this integration
60
-
(`sampleclient` in this example) there are different options. The following one seems
61
-
easy to implement:
62
-
63
-
- Create a dedicated branch for your python library on a public git repository (example: branch
64
-
`dev` on `https://github.com/ludeeus/sampleclient`)
65
-
- Update in the `manifest.json` file the `requirements` key to point on your development branch
0 commit comments