You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_topics/packages.markdown
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ homeassistant:
23
23
24
24
The package configuration can include: `switch`, `light`, `automation`, `groups` or the majority of the Home Assistant components.
25
25
26
-
It can be specified inline, or in a seperate YAML file using `!include`
26
+
It can be specified inline or in a seperate YAML file using `!include`.
27
27
28
28
Inline example, main `configuration.yaml`:
29
29
@@ -62,8 +62,8 @@ light:
62
62
63
63
There are some rules for packages that will be merged:
64
64
65
-
1. Component names may only use the basic form (e.g. `switch` and `switch 1` or `switch aa` is not accepted)
66
-
2. Platform based components (`light`, `switch`, etc) can always be merged
65
+
1. Component names may only use the basic form (e.g. `switch` and `switch 1` or `switch aa` is not accepted).
66
+
2. Platform based components (`light`, `switch`, etc) can always be merged.
67
67
3. Components where entities are identified by a key that will represent the entity_id (`{key: config}`) need to have unique 'keys' between packages and the main configuration file.
68
68
69
69
For example if we have the following in the main config. You are not allowed to re-use "my_input" again for `input_boolean` in a package:
@@ -72,7 +72,7 @@ There are some rules for packages that will be merged:
72
72
input_boolean:
73
73
my_input:
74
74
```
75
-
4. Any component that is not a platform [2], or dictionaries with Entity ID keys [3] cannot be merged and can only occur once between all packages and the main config
75
+
4. Any component that is not a platform [2], or dictionaries with Entity ID keys [3] cannot be merged and can only occur once between all packages and the main configuration.
76
76
77
77
<p class='note tip'>
78
78
Components inside packages can only specify platform entries using configuration style 1, where all the platforms are grouped under the component name.
0 commit comments