mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
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
@ -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…
x
Reference in New Issue
Block a user