From 4216da35544ba0ee2e7241456bfd0ea658d975de Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Thu, 1 Jul 2021 10:16:21 +1200 Subject: [PATCH] Update climate code block types (#1285) --- components/climate/index.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/climate/index.rst b/components/climate/index.rst index 57b585a64..a55ebb957 100644 --- a/components/climate/index.rst +++ b/components/climate/index.rst @@ -82,14 +82,14 @@ Configuration variables: - **away** (*Optional*, boolean, :ref:`templatable `): Set the away mode of the climate device. - **preset** (*Optional*, string, :ref:`templatable `): Set the preset - of the climate device. One of ``ECO``, ``AWAY``, ``BOOST``, ``COMFORT``, ``HOME``, ``SLEEP``, + of the climate device. One of ``ECO``, ``AWAY``, ``BOOST``, ``COMFORT``, ``HOME``, ``SLEEP``, ``ACTIVITY``. -- **custom_preset** (*Optional*, string, :ref:`templatable `): Set one of the +- **custom_preset** (*Optional*, string, :ref:`templatable `): Set one of the supported custom_presets of the climate device. - **fan_mode** (*Optional*, string, :ref:`templatable `): Set the fan mode of the climate device. One of ``ON``, ``OFF``, ``AUTO``, ``LOW``, ``MEDIUM``, ``HIGH``, ``MIDDLE``, ``FOCUS``, ``DIFFUSE``. -- **custom_fan_mode** (*Optional*, string, :ref:`templatable `): Set one of the +- **custom_fan_mode** (*Optional*, string, :ref:`templatable `): Set one of the supported custom_fan_modes of the climate device. - **swing_mode** (*Optional*, string, :ref:`templatable `): Set the swing mode of the climate device. One of ``OFF``, ``BOTH``, ``VERTICAL``, ``HORIZONTAL``. @@ -104,7 +104,7 @@ advanced stuff. - Attributes: All climate devices have read-only attributes to get the current state of the device. - .. code-block:: yaml + .. code-block:: cpp // Current mode, type: ClimateMode (enum) id(my_climate).mode @@ -125,7 +125,7 @@ advanced stuff. - ``.make_call``: Control the climate device - .. code-block:: yaml + .. code-block:: cpp auto call = id(my_climate).make_call(); call.set_mode("OFF");