Make minimal integration working again (#1816)

Without a file `manifest.json` and some keys the integration can't be found.
This commit is contained in:
Elmar Hinz 2023-07-03 09:11:04 +02:00 committed by GitHub
parent 79caae92d4
commit cc6a7647ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,8 +37,18 @@ async def async_setup(hass, config):
# Return boolean to indicate that initialization was successful. # Return boolean to indicate that initialization was successful.
return True return True
``` ```
Create a file `<config_dir>/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 `<config_dir>/custom_components/hello_state/manifest.json`.
To load this, add `hello_state:` to your `configuration.yaml` file and create a file `<config_dir>/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 ## What the scaffold offers