Skip to content
Snippets Groups Projects
Commit 84c7149f authored by Fabian Affolter's avatar Fabian Affolter
Browse files

update journey

parent 2317114b
No related branches found
No related tags found
No related merge requests found
......@@ -50,9 +50,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
# journal contains [0] Station ID start, [1] Station ID destination
# [2] Station name start, and [3] Station name destination
journey = []
journey.append(config.get('from', None))
journey.append(config.get('to', None))
journey = [config.get('from'), config.get('to')]
try:
for location in [config.get('from', None), config.get('to', None)]:
# transport.opendata.ch doesn't play nice with requests.Session
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment