Add development 101 section

This commit is contained in:
Paulus Schoutsen 2017-05-13 17:52:10 -07:00
parent 00a5dee7fb
commit 94957caacb
9 changed files with 211 additions and 63 deletions

View file

@ -11,7 +11,7 @@ footer: true
Home Assistant allows components and platforms to specify their dependencies and requirements using the variables `DEPENDENCIES` and `REQUIREMENTS`. Both are lists that contain strings.
## Dependencies
## {% linkable_title Dependencies %}
Dependencies are other Home Assistant components that should be setup before the platform is loaded. An example is the MQTT sensor component, which requires an active connection to an MQTT broker. If Home Assistant is unable to load and setup the MQTT component, it will not setup the MQTT sensor component.
@ -19,7 +19,7 @@ Dependencies are other Home Assistant components that should be setup before the
DEPENDENCIES = ['mqtt']
```
## Requirements
## {% linkable_title Requirements %}
Requirements are Python libraries that you would normally install using `pip` for your component. Home Assistant will try to install the requirements into the `deps` subdirectory of the Home Assistant configuration directory (`.home-assistant` by default) or verify it is already installed at startup. If that fails, the component will fail to load.