mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-14 12:56:30 +00:00
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:
parent
79caae92d4
commit
cc6a7647ee
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user