From cc6a7647eedc8a208ddec78f4e2e0701d2e785d9 Mon Sep 17 00:00:00 2001 From: Elmar Hinz Date: Mon, 3 Jul 2023 09:11:04 +0200 Subject: [PATCH] Make minimal integration working again (#1816) Without a file `manifest.json` and some keys the integration can't be found. --- docs/creating_component_index.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/creating_component_index.md b/docs/creating_component_index.md index dfd91e00..37a0dfcb 100644 --- a/docs/creating_component_index.md +++ b/docs/creating_component_index.md @@ -37,8 +37,18 @@ async def async_setup(hass, config): # Return boolean to indicate that initialization was successful. return True ``` +Create a file `/custom_components/hello_state/__init__.py` with one of the two codeblocks. +In addition a manifest file is required with below keys as the bare minimum. Create `/custom_components/hello_state/manifest.json`. -To load this, add `hello_state:` to your `configuration.yaml` file and create a file `/custom_components/hello_state/__init__.py` with one of the two codeblocks above to test it locally. +```json +{ + "domain": "hello_state", + "name": "Hello, state!", + "version": "0.1.0" +} +``` + +To load this, add `hello_state:` to your `configuration.yaml` file. ## What the scaffold offers