mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-25 17:17:54 +01:00
Add documentation for !extend tag (#3248)
This commit is contained in:
parent
d8dfa62a25
commit
8c79e6ca17
@ -323,6 +323,20 @@ your configuration file. This can be used to create generic 'template' configura
|
||||
files (like the ``example.yaml`` above) which can be used for multiple devices,
|
||||
using substitutions which are provided on the command line.
|
||||
|
||||
Extend
|
||||
------
|
||||
|
||||
To make changes or add additional configuration to included configurations ``!extend config_id`` can be used, where ``config_id`` is the ID of the configuration to modify.
|
||||
For example to set a specific update interval on a common uptime sensor that is shared between configurations:
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
<<: !include common.yaml
|
||||
|
||||
sensor:
|
||||
- id: !extend uptime_sensor
|
||||
update_interval: 10s
|
||||
|
||||
.. _config-packages:
|
||||
|
||||
Packages
|
||||
|
Loading…
Reference in New Issue
Block a user