mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-26 17:27:47 +01:00
Fixes
This commit is contained in:
parent
505255fa56
commit
e23101bf9f
@ -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
|
||||
|
@ -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]
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user