Move packages and substitutions out of folders (#4112)

* Move packages and substitutions out of folders

* Fix
This commit is contained in:
Jesse Hills 2024-08-06 17:16:59 +12:00 committed by GitHub
parent 2ffcef1815
commit f363b22477
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 6 additions and 8 deletions

View File

@ -134,7 +134,7 @@ Other notable changes:
(:ref:`wifi-networks`) (:ref:`wifi-networks`)
- GPIO Switches have a new option ``restore_mode`` to configure how their values should be restored on boot. - GPIO Switches have a new option ``restore_mode`` to configure how their values should be restored on boot.
(:doc:`/components/switch/gpio`) (:doc:`/components/switch/gpio`)
- Added :doc:`/components/substitutions/index` to reduce repeating across configs. - Added :doc:`/components/substitutions` to reduce repeating across configs.
- Validation error messages are now displayed even better. Now all errors are shown with the exact context - Validation error messages are now displayed even better. Now all errors are shown with the exact context
where the error appeared. Try it, it's so much better. Next step will be to upgrade to a better YAML reader where the error appeared. Try it, it's so much better. Next step will be to upgrade to a better YAML reader
to provide better error messages when the YAML syntax is invalid. to provide better error messages when the YAML syntax is invalid.

View File

@ -34,6 +34,4 @@ Components
text/index text/index
update/index update/index
valve/index valve/index
packages/index
substitutions/index
* *

View File

@ -74,7 +74,7 @@ Remote/Git Packages
------------------- -------------------
Packages can also be loaded from a Git repository by utilizing the correct configuration syntax. Packages can also be loaded from a Git repository by utilizing the correct configuration syntax.
:doc:`/components/substitutions/index` can be used inside the remote packages which allows users to override :doc:`/components/substitutions` can be used inside the remote packages which allows users to override
them locally with their own substitution value. them locally with their own substitution value.
.. note:: .. note::

View File

@ -48,7 +48,7 @@ Tips for using ESPHome
payload: double payload: double
For even more configuration templating, take a look at :doc:`/components/substitutions/index`. For even more configuration templating, take a look at :doc:`/components/substitutions`.
2. If you want to see how ESPHome interprets your configuration, run 2. If you want to see how ESPHome interprets your configuration, run
@ -66,7 +66,7 @@ Tips for using ESPHome
5. You can view the full list of command line interface options here: :doc:`/guides/cli` 5. You can view the full list of command line interface options here: :doc:`/guides/cli`
6. Use :doc:`/components/substitutions/index` to reduce repetition in your configuration files. 6. Use :doc:`/components/substitutions` to reduce repetition in your configuration files.
.. |secret| replace:: ``!secret`` .. |secret| replace:: ``!secret``
.. _secret: https://www.home-assistant.io/docs/configuration/secrets/ .. _secret: https://www.home-assistant.io/docs/configuration/secrets/

View File

@ -182,8 +182,8 @@ Streamline your ESPHome configuration and/or use components provided by other co
.. imgtable:: .. imgtable::
External Components, components/external_components, external_components.svg, dark-invert External Components, components/external_components, external_components.svg, dark-invert
Packages, components/packages/index, description.svg, dark-invert Packages, components/packages, description.svg, dark-invert
Substitutions, components/substitutions/index, description.svg, dark-invert Substitutions, components/substitutions, description.svg, dark-invert
Network Hardware Network Hardware
---------------- ----------------