Traceback (most recent call last):


 "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 155, in _async_setup_platform

entity_platform.schedule_add_entities, discovery_info


 "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__

yield self
# This tells Task to wait for completion.


 "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup

value = future.result()


 "/usr/lib/python3.4/asyncio/futures.py", line 277, in result

raise self._exception


 "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run

result = self.fn(*self.args, **self.kwargs)


 "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/roku.py", line 46, in setup_platform

host = discovery_info[0]
KeyError: 0

Traceback (most recent call last):


 "main.py", line 64, in <module>

main()


 "main.py", line 26, in main

Query.run()


 "/root/py12306/py12306/query/query.py", line 54, in run

self.start()


 "/root/py12306/py12306/query/query.py", line 78, in start

jobs_do(self.jobs, 'run')


 "/root/py12306/py12306/helpers/func.py", line 146, in jobs_do

getattr(job, do)()


 "/root/py12306/py12306/query/job.py", line 109, in run

self.start()


 "/root/py12306/py12306/query/job.py", line 122, in start

self.refresh_station(station)


 "/root/py12306/py12306/query/job.py", line 324, in refresh_station

self.left_station_code = Station.get_station_key_by_name(self.left_station)


 "/root/py12306/py12306/helpers/station.py", line 41, in get_station_key_by_name

return self.station_kvs[name]
KeyError: '武汉站'