add only_direct option to sensor.deutsche_bahn (#4542)

* add only_direct option to sensor.deutsche_bahn

goes along with https://github.com/home-assistant/home-assistant/pull/11999

* Update style
This commit is contained in:
akloeckner 2018-01-29 23:29:39 +01:00 committed by Fabian Affolter
parent 2788202f1e
commit a3e449edb5

View File

@ -25,11 +25,21 @@ sensor:
from: NAME_OF_START_STATION from: NAME_OF_START_STATION
to: NAME_OF_FINAL_STATION to: NAME_OF_FINAL_STATION
``` ```
{% configuration %}
Configuration variables: from:
description: The name of the start station.
- **from** (*Required*): The name of the start station. required: true
- **to** (*Required*): The name of the end/destination station. type: string
to:
description: The name of the end/destination station.
required: true
type: string
only_direct:
description: Only show direct connections.
required: false
type: boolean
default: false
{% endconfiguration %}
This sensor stores a lot of attributes which can be accessed by other sensors eg. a [template sensor](/components/sensor.template/). This sensor stores a lot of attributes which can be accessed by other sensors eg. a [template sensor](/components/sensor.template/).