Skip to content

Commit 9e5c5c8

Browse files
evemorgenfabaff
authored andcommitted
Extend development 101 (home-assistant#5099)
* extend development 101 with configuration.yaml entry and runtime example. * being more descriptive, change quote marks to follow standards * Minor changes
1 parent 211467d commit 9e5c5c8

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

source/developers/development_101.markdown

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,23 @@ def setup(hass, config):
3535
return True
3636
```
3737

38+
Last step is to add `hello_world:` entry to your `configuration.yaml` file.
39+
40+
```yaml
41+
# Hello World component
42+
hello_world:
43+
```
44+
45+
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.
46+
47+
```log
48+
2018-04-03 21:44:20 INFO (MainThread) [homeassistant.loader] Loaded hello_world from custom_components.hello_world
49+
2018-04-03 21:44:20 INFO (MainThread) [homeassistant.setup] Setting up hello_world
50+
```
51+
52+
<p class='img'>
53+
<img src='/images/screenshots/hello-world-state-card.png' />
54+
State card showing that Hello World component is working as intended.
55+
</p>
56+
3857
[architecture]: /developers/architecture/
Loading

0 commit comments

Comments
 (0)