Fixed bug in google time travel (#2202)
Fixed bug in google time travel when arrival time is given
This commit is contained in:
parent
027c0b3168
commit
0cdd752d6c
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue