Fixed bug in google time travel (#2202)

Fixed bug in google time travel  when arrival time is given
This commit is contained in:
Daniel Høyer Iversen 2016-06-08 04:19:47 +02:00 committed by Paulus Schoutsen
parent 027c0b3168
commit 0cdd752d6c

View file

@ -178,7 +178,7 @@ class GoogleTravelTimeSensor(Entity):
options_copy['departure_time'] = convert_time_to_utc(dtime)
elif dtime is not None:
options_copy['departure_time'] = dtime
else:
elif atime is None:
options_copy['departure_time'] = 'now'
if atime is not None and ':' in atime: