This commit is contained in:
Otto Winter 2018-12-05 10:23:02 +01:00
parent 505255fa56
commit e23101bf9f
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E
3 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@ Converting from W to kW
Some sensors such as the :doc:`HLW8012 <hlw8012>` expose their power sensor with a unit of measurement of
``W``. To have your readings in ``kW``, use a filter:
.. code::
.. code-block:: yaml
sensor:
# The power sensor to convert, can be any power sensor

View File

@ -372,13 +372,13 @@ it in the configuration. Specifically, it may contain these fields:
- ``DEPENDENCIES``: Other components that are required to be in the user's configuration if this platform/component
is loaded:
.. code::
.. code-block:: python
DEPENDENCIES = ['i2c']
- ``ESP_PLATFORMS``: Provide a whitelist of platforms this integration works on. Default is work on all platforms.
.. code::
.. code-block:: python
ESP_PLATFORMS = [ESP_PLATFORM_ESP32]

View File

@ -190,7 +190,7 @@ takes up to 2 hours!). To install the dev version of esphomeyaml:
Next, if you want to use the latest version of the esphomelib C++ framework too:
.. code::
.. code-block:: yaml
# Sample configuration entry
esphomeyaml: