update journey
This commit is contained in:
parent
90d55ef901
commit
1e5e06fef5
1 changed files with 1 additions and 3 deletions
|
@ -50,9 +50,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
|
|
||||||
# journal contains [0] Station ID start, [1] Station ID destination
|
# journal contains [0] Station ID start, [1] Station ID destination
|
||||||
# [2] Station name start, and [3] Station name destination
|
# [2] Station name start, and [3] Station name destination
|
||||||
journey = []
|
journey = [config.get('from'), config.get('to')]
|
||||||
journey.append(config.get('from', None))
|
|
||||||
journey.append(config.get('to', None))
|
|
||||||
try:
|
try:
|
||||||
for location in [config.get('from', None), config.get('to', None)]:
|
for location in [config.get('from', None), config.get('to', None)]:
|
||||||
# transport.opendata.ch doesn't play nice with requests.Session
|
# transport.opendata.ch doesn't play nice with requests.Session
|
||||||
|
|
Loading…
Add table
Reference in a new issue