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:
parent
2788202f1e
commit
a3e449edb5
1 changed files with 15 additions and 5 deletions
|
@ -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/).
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue