Skip to content

Commit

Permalink
Fix components.json generation (esphome#4013)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesserockz authored Jul 2, 2024
1 parent 27f3440 commit d36e808
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion changelog/v1.9.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down
4 changes: 1 addition & 3 deletions components/globals.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.. _config-globals:

Global Variables
----------------

Expand Down Expand Up @@ -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
Expand Down
6 changes: 2 additions & 4 deletions components/interval.rst
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 2 additions & 4 deletions components/script.rst
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions cookbook/http_request_sensor.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -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`

0 comments on commit d36e808

Please sign in to comment.