Skip to content

Commit

Permalink
Update splitting_configuration.markdown (#9003)
Browse files Browse the repository at this point in the history
* Update splitting_configuration.markdown

Reference to non-existing example removed

* Update splitting_configuration.markdown
  • Loading branch information
akasma74 authored and fabaff committed Mar 22, 2019
1 parent ac57a28 commit 752cf70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/_docs/configuration/splitting_configuration.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ mqtt:
```
As with the core snippet, indentation makes a difference. The component headers (`mqtt:`) should be fully left aligned (aka no indent), and the parameters (`broker:`) should be indented two (2) spaces.

While some of these components can technically be moved to a separate file they are so small or "one off's" where splitting them off is superfluous. Also, you'll notice the # symbol (hash/pound). This represents a "comment" as far as the commands are interpreted. Put another way, any line prefixed with a `#` will be ignored. This makes breaking up files for human readability really convenient, not to mention turning off features while leaving the entry intact. (Look at the `zigbee:` entry above and the b entry further down)
While some of these components can technically be moved to a separate file they are so small or "one off's" where splitting them off is superfluous. Also, you'll notice the # symbol (hash/pound). This represents a "comment" as far as the commands are interpreted. Put another way, any line prefixed with a `#` will be ignored. This makes breaking up files for human readability really convenient, not to mention turning off features while leaving the entry intact.

Now, lets assume that a blank file has been created in the Home Assistant configuration directory for each of the following:

Expand Down Expand Up @@ -106,7 +106,7 @@ Let's look at the `device_tracker.yaml` file from our example:
consider_home: 120
```

This small example illustrates how the "split" files work. In this case, we start with a "comment block" identifying the file followed by two (2) device tracker entries (`owntracks` and `nmap`). These files follow ["style 1"](/getting-started/devices/#style-2-list-each-device-separately) that is to say a fully left aligned leading entry (`- platform: owntracks`) followed by the parameter entries indented two (2) spaces.
This small example illustrates how the "split" files work. In this case, we start with two (2) device tracker entries (`owntracks` and `nmap`). These files follow ["style 1"](/getting-started/devices/#style-2-list-each-device-separately) that is to say a fully left aligned leading entry (`- platform: owntracks`) followed by the parameter entries indented two (2) spaces.

This (large) sensor configuration gives us another example:

Expand Down

0 comments on commit 752cf70

Please sign in to comment.