From f5dafaf3bf47322058897c66fd517623699194ba Mon Sep 17 00:00:00 2001 From: Klaas Schoute Date: Wed, 17 Oct 2018 23:54:10 +0200 Subject: [PATCH] Update UK transport sensor component configuration variable (#6897) * Update UK transport sensor component configuration variable * :ambulance: Added keys to queries * Minor changes --- .../_components/sensor.uk_transport.markdown | 35 ++++++++++++++----- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/source/_components/sensor.uk_transport.markdown b/source/_components/sensor.uk_transport.markdown index 17bebc15dad..46ccdac0ac5 100644 --- a/source/_components/sensor.uk_transport.markdown +++ b/source/_components/sensor.uk_transport.markdown @@ -37,14 +37,33 @@ sensor: destination: WAT ``` -Configuration variables: - -- **app_id** (*Required*): Your application id -- **app_key** (*Required*): Your application key -- **queries** array (*Required*): At least one entry required. -- **mode** (*Required*): One of `bus` or `train`. -- **origin** (*Required*): Specify the three character long origin station code. -- **destination** (*Required*): Specify the three character long destination station code. +{% configuration %} +app_id: + description: Your application ID. + required: true + type: string +app_key: + description: Your application Key. + required: true + type: string +queries: + description: At least one entry required. + required: true + type: list + keys: + mode: + description: One of `bus` or `train`. + required: true + type: list + origin: + description: Specify the three character long origin station code. + required: true + type: string + destination: + description: Specify the three character long destination station code. + required: true + type: string +{% endconfiguration %} A large amount of information about upcoming departures is available within the attributes of the sensor. The example above creates a sensor with ID `sensor.next_train_to_wat` with the attribute `next_trains` which is a list of the next 25 departing trains.