Extend risks in using YAMLLint and alternative (#3543)

* Extends reasoning on YAMLLint

* Removes obsolete whitespace

* Fix whitespace

* Adds reference to inclusion of env-vars in YAML

* Add links
This commit is contained in:
Jens 2017-10-07 13:12:04 +02:00 committed by Fabian Affolter
parent 43e46a9f66
commit a69e4f0e40

View File

@ -30,8 +30,8 @@ The basics of YAML syntax are block collections and mappings containing key-valu
Note that indentation (just like in Python) is an important part of specifying relationships using YAML. Things that are indented are nested "inside" things that are one level higher. So in the above example, `platform: pushbullet` is a property of (nested inside) the `notify` component.
Getting the right indentation can be tricky if you're not using an editor with a fixed width font. Tabs are not allowed to be used for indentation. Convention is to use 2 spaces for each level of indentation.
You can use [YAMLLint](http://www.yamllint.com/) to check if your YAML-syntax is correct before loading it into Home Assistant which will save you some time.
*Please pay attention on not putting in private data, as it is a 3rd-party website not maintained by Home Assistant.*
You can use the online service [YAMLLint](http://www.yamllint.com/) to check if your YAML syntax is correct before loading it into Home Assistant which will save you some time. If you do so, be aware that this is a third-party service and is not maintained by the Home Assistant community. *Please pay attention on not storing private data (passwords, api-keys, etc.) directly in that file.*
Private data can be stored in a [seperate file](/docs/configuration/secrets/) or in [environmental variables](/docs/configuration/yaml/#using-environment-variables), which circumvents this problem of security.
Text following a `#` are comments and are ignored by the system.