Minimizing of the configuration sample (#1009)

This commit is contained in:
Fabian Affolter 2016-09-30 20:49:21 +02:00 committed by GitHub
parent de7c1d5ac9
commit a664249de9
2 changed files with 13 additions and 14 deletions

View file

@ -21,15 +21,14 @@ To enable this sensor in your installation, add the following to your `configura
```yaml
# Example configuration.yaml entry
sensor:
platform: worldclock
time_zone: America/New_York
name: New York
- platform: worldclock
time_zone: America/New_York
```
Configuration variables:
- **time_zone** (*Required*): The resource or endpoint that contains the value.
- **name** (*Optional*): The name of the sensor, eg. the city.
- **name** (*Optional*): The name of the sensor, eg. the city. Defaults to 'Worldclock Sensor'.
For valid time zones check the **TZ** column in the [Wikipedia overview](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Or get the full list from the [pytz](https://pypi.python.org/pypi/pytz) module.