Add documentation for !extend tag (#3248)

This commit is contained in:
RoboMagus 2023-10-09 20:41:48 +02:00 committed by GitHub
parent d8dfa62a25
commit 8c79e6ca17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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