diff --git a/guides/configuration-types.rst b/guides/configuration-types.rst index 579e8b24d..fb427411b 100644 --- a/guides/configuration-types.rst +++ b/guides/configuration-types.rst @@ -331,20 +331,6 @@ 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 @@ -543,6 +529,21 @@ platform, it could be constructed like this: - switch.turn_off: open_${door_location}_door_switch - switch.turn_off: close_${door_location}_door_switch +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 + + packages: + common: !include common.yaml + + sensor: + - id: !extend uptime_sensor + update_interval: 10s + See Also --------