From e23101bf9f1b863b5f7a2681d15b06df8ac71ce6 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Wed, 5 Dec 2018 10:23:02 +0100 Subject: [PATCH] Fixes --- esphomeyaml/components/sensor/total_daily_energy.rst | 2 +- esphomeyaml/guides/contributing.rst | 4 ++-- esphomeyaml/guides/faq.rst | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/esphomeyaml/components/sensor/total_daily_energy.rst b/esphomeyaml/components/sensor/total_daily_energy.rst index aee7c9a9e..1bfb8ea79 100644 --- a/esphomeyaml/components/sensor/total_daily_energy.rst +++ b/esphomeyaml/components/sensor/total_daily_energy.rst @@ -47,7 +47,7 @@ Converting from W to kW Some sensors such as the :doc:`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 diff --git a/esphomeyaml/guides/contributing.rst b/esphomeyaml/guides/contributing.rst index c5ebbadd8..91087ac02 100644 --- a/esphomeyaml/guides/contributing.rst +++ b/esphomeyaml/guides/contributing.rst @@ -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] diff --git a/esphomeyaml/guides/faq.rst b/esphomeyaml/guides/faq.rst index fef9e84b7..90c3a7bad 100644 --- a/esphomeyaml/guides/faq.rst +++ b/esphomeyaml/guides/faq.rst @@ -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: