mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-02-28 03:41:57 +01:00
Update climate code block types (#1285)
This commit is contained in:
parent
2cf8b8ced6
commit
4216da3554
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user