Skip to content

Commit cb3cb5f

Browse files
committed
Update config var name
1 parent 8585555 commit cb3cb5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/_components/sensor.tcp.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Configuration options for the a TCP Sensor:
3333
- **payload** (*Required*): What to send to the host in order to get the response we're interested in.
3434
- **timeout** (*Optional*): How long in seconds to wait for a response from the service before giving up and disconnecting. Defaults to `10`
3535
- **value_template** (*Optional*): Defines a [template](/topics/templating/) to extract the value. By default it's assumed that the entire response is the value.
36-
- **unit** (*Optional*): The unit of measurement to use for the value.
36+
- **unit_of_measurement** (*Optional*): The unit of measurement to use for the value.
3737
- **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`.
3838

3939
## {% linkable_title Examples %}
@@ -61,7 +61,7 @@ sensor:
6161
timeout: 5
6262
payload: "r WaterPressure\n"
6363
value_template: "{% raw %}{{ value.split(';')[0] }}{% endraw %}"
64-
unit: Bar
64+
unit_of_measurement: Bar
6565
```
6666

6767
### {% linkable_title hddtemp %}
@@ -95,5 +95,5 @@ sensor:
9595
timeout: 5
9696
payload: "\n"
9797
value_template: "{% raw %}{{ value.split('|')[3] }}{% endraw %}"
98-
unit: "°C"
98+
unit_of_measurement: "°C"
9999
```

0 commit comments

Comments
 (0)