Fix components.json generation (#4013)

This commit is contained in:
Jesse Hills 2024-07-02 12:11:08 +12:00 committed by GitHub
parent 27f3440b4b
commit d36e808d72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 8 additions and 14 deletions

View File

@ -137,7 +137,7 @@ New Features
- You can now upload OTA firmware files with the :doc:`web server component </components/web_server>`
- Added the ability to define global variables in esphomeyaml: :ref:`config-globals`.
- Added the ability to define global variables in esphomeyaml: :doc:`/components/globals`.
- Added a ``frequency`` option to the :doc:`/components/output/esp8266_pwm`.

View File

@ -1,5 +1,3 @@
.. _config-globals:
Global Variables
----------------
@ -54,7 +52,7 @@ Configuration variables:
``globals.set`` Action
----------------------
This :ref:`Action <config-action>` allows you to change the value of a :ref:`global <config-globals>`
This :ref:`Action <config-action>` allows you to change the value of a ``global``
variable without having to use the lambda syntax.
.. code-block:: yaml

View File

@ -1,7 +1,5 @@
.. _interval:
``interval`` Component
----------------------
Interval Component
------------------
This component allows you to run actions at fixed time intervals. For example, if you want to toggle a switch every
minute, you can use this component. Please note that it's possible to achieve the same thing with the

View File

@ -1,7 +1,5 @@
.. _script:
``script`` Component
--------------------
Script Component
----------------
ESPHome's ``script`` component allows you to define a list of steps (actions) in a central place. You can then execute
the script from nearly anywhere in your device's configuration with a single call.

View File

@ -35,7 +35,7 @@ On the client nodes we need an :doc:`/components/http_request` with an ``id`` se
Pulling the data
****************
To automate the request for data, we use an :ref:`interval` requesting the URL pointing to the sensor id for which the state is needed. See :ref:`api-rest` on how to build up the URL for your sensors.
To automate the request for data, we use an :doc:`/components/interval` requesting the URL pointing to the sensor id for which the state is needed. See :ref:`api-rest` on how to build up the URL for your sensors.
In the example below we request the value of a sensor from the server node, and after parsing the resulted JSON string we publish it to the local template sensor:
@ -118,6 +118,6 @@ See Also
- :doc:`/components/web_server`
- :doc:`/components/http_request`
- :doc:`/components/sensor/template`
- :ref:`interval`
- :doc:`/components/interval`
- :ref:`api-rest`
- :ghedit:`Edit`