From bc626e51d5a33751fb1c4f756926084c725e9ca7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 5 Aug 2017 12:03:35 +0200 Subject: [PATCH] Aligh configuration sample with current preferred style --- source/_components/sensor.tcp.markdown | 32 +++++++++++++------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/source/_components/sensor.tcp.markdown b/source/_components/sensor.tcp.markdown index 96fb3f8e04b..0267007d9fa 100644 --- a/source/_components/sensor.tcp.markdown +++ b/source/_components/sensor.tcp.markdown @@ -55,14 +55,14 @@ You will notice that the output from the service is not just a single value (it ```yaml sensor: # Example configuration.yaml entry - platform: tcp - name: Central Heating Pressure - host: 10.0.0.127 - port: 8888 - timeout: 5 - payload: "r WaterPressure\n" - value_template: "{% raw %}{{ value.split(';')[0] }}{% endraw %}" - unit_of_measurement: Bar + - platform: tcp + name: Central Heating Pressure + host: 10.0.0.127 + port: 8888 + timeout: 5 + payload: "r WaterPressure\n" + value_template: "{% raw %}{{ value.split(';')[0] }}{% endraw %}" + unit_of_measurement: Bar ``` ### {% linkable_title hddtemp %} @@ -89,12 +89,12 @@ The entry for the `configuration.yaml` file for a `hddtemp` sensor could look li ```yaml sensor: # Example configuration.yaml entry - platform: tcp - name: HDD temperature - host: 127.0.0.1 - port: 7634 - timeout: 5 - payload: "\n" - value_template: "{% raw %}{{ value.split('|')[3] }}{% endraw %}" - unit_of_measurement: "°C" + - platform: tcp + name: HDD temperature + host: 127.0.0.1 + port: 7634 + timeout: 5 + payload: "\n" + value_template: "{% raw %}{{ value.split('|')[3] }}{% endraw %}" + unit_of_measurement: "°C" ```