From a3e449edb5cea71324cf8f5c97386497ad1e8ae5 Mon Sep 17 00:00:00 2001 From: akloeckner Date: Mon, 29 Jan 2018 23:29:39 +0100 Subject: [PATCH] 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 --- .../_components/sensor.deutsche_bahn.markdown | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/source/_components/sensor.deutsche_bahn.markdown b/source/_components/sensor.deutsche_bahn.markdown index 58fd420aeb7..a2003e4c7d4 100644 --- a/source/_components/sensor.deutsche_bahn.markdown +++ b/source/_components/sensor.deutsche_bahn.markdown @@ -25,11 +25,21 @@ sensor: from: NAME_OF_START_STATION to: NAME_OF_FINAL_STATION ``` - -Configuration variables: - -- **from** (*Required*): The name of the start station. -- **to** (*Required*): The name of the end/destination station. +{% configuration %} +from: + description: The name of the start station. + required: true + 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/).