mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 06:35:10 +02:00
Fixed bug in google time travel (#2202)
Fixed bug in google time travel when arrival time is given
This commit is contained in:
committed by
Paulus Schoutsen
parent
027c0b3168
commit
0cdd752d6c
@@ -178,7 +178,7 @@ class GoogleTravelTimeSensor(Entity):
|
|||||||
options_copy['departure_time'] = convert_time_to_utc(dtime)
|
options_copy['departure_time'] = convert_time_to_utc(dtime)
|
||||||
elif dtime is not None:
|
elif dtime is not None:
|
||||||
options_copy['departure_time'] = dtime
|
options_copy['departure_time'] = dtime
|
||||||
else:
|
elif atime is None:
|
||||||
options_copy['departure_time'] = 'now'
|
options_copy['departure_time'] = 'now'
|
||||||
|
|
||||||
if atime is not None and ':' in atime:
|
if atime is not None and ':' in atime:
|
||||||
|
Reference in New Issue
Block a user