From cb3cb5feccca6bd9140d3345b3d549e53ad62bcf Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 6 Jan 2017 09:16:43 +0100 Subject: [PATCH] Update config var name --- source/_components/sensor.tcp.markdown | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/_components/sensor.tcp.markdown b/source/_components/sensor.tcp.markdown index e08692e3b41..3357c7f577b 100644 --- a/source/_components/sensor.tcp.markdown +++ b/source/_components/sensor.tcp.markdown @@ -33,7 +33,7 @@ Configuration options for the a TCP Sensor: - **payload** (*Required*): What to send to the host in order to get the response we're interested in. - **timeout** (*Optional*): How long in seconds to wait for a response from the service before giving up and disconnecting. Defaults to `10` - **value_template** (*Optional*): Defines a [template](/topics/templating/) to extract the value. By default it's assumed that the entire response is the value. -- **unit** (*Optional*): The unit of measurement to use for the value. +- **unit_of_measurement** (*Optional*): The unit of measurement to use for the value. - **buffer_size** (*Optional*): The size of the receive buffer in bytes. Set this to a larger value if you expect to receive a response larger than the default. Defaults to `1024`. ## {% linkable_title Examples %} @@ -61,7 +61,7 @@ sensor: timeout: 5 payload: "r WaterPressure\n" value_template: "{% raw %}{{ value.split(';')[0] }}{% endraw %}" - unit: Bar + unit_of_measurement: Bar ``` ### {% linkable_title hddtemp %} @@ -95,5 +95,5 @@ sensor: timeout: 5 payload: "\n" value_template: "{% raw %}{{ value.split('|')[3] }}{% endraw %}" - unit: "°C" + unit_of_measurement: "°C" ```