mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-27 22:31:37 +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
|
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:
|
``W``. To have your readings in ``kW``, use a filter:
|
||||||
|
|
||||||
.. code::
|
.. code-block:: yaml
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
# The power sensor to convert, can be any power 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
|
- ``DEPENDENCIES``: Other components that are required to be in the user's configuration if this platform/component
|
||||||
is loaded:
|
is loaded:
|
||||||
|
|
||||||
.. code::
|
.. code-block:: python
|
||||||
|
|
||||||
DEPENDENCIES = ['i2c']
|
DEPENDENCIES = ['i2c']
|
||||||
|
|
||||||
- ``ESP_PLATFORMS``: Provide a whitelist of platforms this integration works on. Default is work on all platforms.
|
- ``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]
|
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:
|
Next, if you want to use the latest version of the esphomelib C++ framework too:
|
||||||
|
|
||||||
.. code::
|
.. code-block:: yaml
|
||||||
|
|
||||||
# Sample configuration entry
|
# Sample configuration entry
|
||||||
esphomeyaml:
|
esphomeyaml:
|
||||||
|
Loading…
Reference in New Issue
Block a user