mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 16:56:50 +00:00
Extend development 101 (#5099)
* extend development 101 with configuration.yaml entry and runtime example. * being more descriptive, change quote marks to follow standards * Minor changes
This commit is contained in:
parent
211467de37
commit
9e5c5c827c
@ -35,4 +35,23 @@ def setup(hass, config):
|
|||||||
return True
|
return True
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Last step is to add `hello_world:` entry to your `configuration.yaml` file.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Hello World component
|
||||||
|
hello_world:
|
||||||
|
```
|
||||||
|
|
||||||
|
After running `hass`, we should see log entries stating that `hello_world` component was loaded. What is more, additional state card shall appear within main panel.
|
||||||
|
|
||||||
|
```log
|
||||||
|
2018-04-03 21:44:20 INFO (MainThread) [homeassistant.loader] Loaded hello_world from custom_components.hello_world
|
||||||
|
2018-04-03 21:44:20 INFO (MainThread) [homeassistant.setup] Setting up hello_world
|
||||||
|
```
|
||||||
|
|
||||||
|
<p class='img'>
|
||||||
|
<img src='/images/screenshots/hello-world-state-card.png' />
|
||||||
|
State card showing that Hello World component is working as intended.
|
||||||
|
</p>
|
||||||
|
|
||||||
[architecture]: /developers/architecture/
|
[architecture]: /developers/architecture/
|
||||||
|
BIN
source/images/screenshots/hello-world-state-card.png
Normal file
BIN
source/images/screenshots/hello-world-state-card.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
Loading…
x
Reference in New Issue
Block a user