Skip to content

Commit a664249

Browse files
authored
Minimizing of the configuration sample (home-assistant#1009)
1 parent de7c1d5 commit a664249

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

source/_components/sensor.time_date.markdown

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,24 @@ ha_release: pre 0.7
1414
---
1515

1616

17-
The time and date (`time_date`) platform simple displays the time in various formats, the date, or both.
17+
The time and date (`time_date`) sensor platform simple displays the time in various formats, the date, or both.
1818

1919
To enable this sensor in your installation, add the following to your `configuration.yaml` file:
2020

2121
```yaml
2222
# Example configuration.yaml entry
2323
sensor:
24-
platform: time_date
25-
display_options:
26-
- 'time'
27-
- 'date'
28-
- 'date_time'
29-
- 'time_date'
30-
- 'time_utc'
31-
- 'beat'
24+
- platform: time_date
25+
display_options:
26+
- 'time'
27+
- 'date'
28+
- 'date_time'
29+
- 'time_date'
30+
- 'time_utc'
31+
- 'beat'
3232
```
3333
34-
The types *date_time* and *time_date* shows the date and the time. The other types just the time or the date. *beat* shows the [Swatch Internet Time](http://www.swatch.com/en_us/internet-time).
34+
- **display_options** array (*Required*): The option to display. The types *date_time* and *time_date* shows the date and the time. The other types just the time or the date. *beat* shows the [Swatch Internet Time](http://www.swatch.com/en_us/internet-time).
3535
3636
<p class='img'>
3737
<img src='{{site_root}}/images/screenshots/time_date.png' />

source/_components/sensor.worldclock.markdown

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,14 @@ To enable this sensor in your installation, add the following to your `configura
2121
```yaml
2222
# Example configuration.yaml entry
2323
sensor:
24-
platform: worldclock
25-
time_zone: America/New_York
26-
name: New York
24+
- platform: worldclock
25+
time_zone: America/New_York
2726
```
2827
2928
Configuration variables:
3029
3130
- **time_zone** (*Required*): The resource or endpoint that contains the value.
32-
- **name** (*Optional*): The name of the sensor, eg. the city.
31+
- **name** (*Optional*): The name of the sensor, eg. the city. Defaults to 'Worldclock Sensor'.
3332
3433
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.
3534

0 commit comments

Comments
 (0)