Make configuration.yaml more generic (#7607)

Example configuration should not include optional configuration.
To make the names configuration clearer, add a second example.
This commit is contained in:
Nicholas Westerhausen 2018-11-24 07:39:20 -05:00 committed by Franck Nijhof
parent 3fd858367e
commit d4d09d9c63

View File

@ -66,8 +66,6 @@ To enable One wire sensors in your installation, add the following to your `conf
# Example configuration.yaml entry
sensor:
- platform: onewire
names:
some_id: your name
```
{% configuration %}
@ -81,3 +79,15 @@ mount_dir:
type: string
{% endconfiguration %}
### Configuration Example
When `onewire` is added to Home Assistant, it will generate an ID for the sensor. You can specify a friendly name for the sensor with the name configuration option.
```yaml
# Named sensor configuration.yaml entry
sensor:
- platform: onewire
names:
GENERATED_ID: FRIENDLY_NAME
```