mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Explain limitation of multiple !include on top level (#22939)
This commit is contained in:
parent
56b6bf624b
commit
600c3bc53c
@ -76,7 +76,9 @@ device_tracker: !include device_tracker.yaml
|
|||||||
|
|
||||||
Nesting `!include`s (having an `!include` within a file that is itself `!include`d) will also work.
|
Nesting `!include`s (having an `!include` within a file that is itself `!include`d) will also work.
|
||||||
|
|
||||||
You can, as well, have multiple top-level `!include`s for a given integration, if you give a different label to each one:
|
Some integrations support multiple top-level `!include`s, this includes integrations defining an IoT domain, e.g. `light`, `switch`, `sensor` as well as the `automation`, `script` and `template` integrations, if you give a different label to each one. Configuration for other integrations can instead be split up by using packages. To learn more about packages, see the [Packages](/docs/configuration/packages) page.
|
||||||
|
|
||||||
|
Example of multiple top-level keys for the `light` platform.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
light:
|
light:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user