Update configuration sample (#1362)

This commit is contained in:
Fabian Affolter 2016-10-31 13:31:34 +01:00 committed by GitHub
parent d6ddc8f6fb
commit ed1ccb938b

View File

@ -27,27 +27,19 @@ sensor:
Configuration variables: Configuration variables:
- **name** (*Optional*): The name of the sensor. If not specified, it defaults to *Yahoo Stock*. - **name** (*Optional*): The name of the sensor. If not specified, it defaults to *Yahoo Stock*.
- **symbol** (*Optional*): The stock market symbol for a given company. If not specified, it defaults to *Yahoo (YHOO)*. - **symbols** array (*Optional*): List of stock market symbols for given companies. If not specified, it defaults to *Yahoo (YHOO)*.
## {% linkable_title Examples %} ## {% linkable_title Examples %}
In this section you find some real life examples of how to use this sensor. In this section you find some real life examples of how to use this sensor.
### {% linkable_title Red Hat %} ### {% linkable_title Red Hat and Google %}
```yaml ```yaml
sensor: sensor:
- platform: yahoo_finance - platform: yahoo_finance
name: Red Hat Inc. symbols:
symbol: RHT - RHT
``` - GOOGL
### {% linkable_title Google %}
```yaml
sensor:
- platform: yahoo_finance
name: Google
symbol: GOOGL
``` ```