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:
Patryk Gałczyński 2018-04-04 09:21:02 +02:00 committed by Fabian Affolter
parent 211467de37
commit 9e5c5c827c
2 changed files with 19 additions and 0 deletions

View File

@ -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/

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB