Aligh configuration sample with current preferred style

This commit is contained in:
Fabian Affolter 2017-08-05 12:03:35 +02:00
parent 3cdb28f31d
commit bc626e51d5
No known key found for this signature in database
GPG Key ID: DDF3D6F44AAB1336

View File

@ -55,14 +55,14 @@ You will notice that the output from the service is not just a single value (it
```yaml ```yaml
sensor: sensor:
# Example configuration.yaml entry # Example configuration.yaml entry
platform: tcp - platform: tcp
name: Central Heating Pressure name: Central Heating Pressure
host: 10.0.0.127 host: 10.0.0.127
port: 8888 port: 8888
timeout: 5 timeout: 5
payload: "r WaterPressure\n" payload: "r WaterPressure\n"
value_template: "{% raw %}{{ value.split(';')[0] }}{% endraw %}" value_template: "{% raw %}{{ value.split(';')[0] }}{% endraw %}"
unit_of_measurement: Bar unit_of_measurement: Bar
``` ```
### {% linkable_title hddtemp %} ### {% linkable_title hddtemp %}
@ -89,12 +89,12 @@ The entry for the `configuration.yaml` file for a `hddtemp` sensor could look li
```yaml ```yaml
sensor: sensor:
# Example configuration.yaml entry # Example configuration.yaml entry
platform: tcp - platform: tcp
name: HDD temperature name: HDD temperature
host: 127.0.0.1 host: 127.0.0.1
port: 7634 port: 7634
timeout: 5 timeout: 5
payload: "\n" payload: "\n"
value_template: "{% raw %}{{ value.split('|')[3] }}{% endraw %}" value_template: "{% raw %}{{ value.split('|')[3] }}{% endraw %}"
unit_of_measurement: "°C" unit_of_measurement: "°C"
``` ```