mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Fix GTFS variable type mismatch (#22624)
This commit is contained in:
parent
ab2ac60d12
commit
1ce622469d
@ -268,9 +268,8 @@ def get_next_departure(schedule: Any, start_station_id: Any,
|
|||||||
timetable[idx] = {**row, **extras}
|
timetable[idx] = {**row, **extras}
|
||||||
|
|
||||||
# Flag last departures.
|
# Flag last departures.
|
||||||
for idx in [yesterday_last, today_last]:
|
for idx in filter(None, [yesterday_last, today_last]):
|
||||||
if idx is not None:
|
timetable[idx]['last'] = True
|
||||||
timetable[idx]['last'] = True
|
|
||||||
|
|
||||||
_LOGGER.debug("Timetable: %s", sorted(timetable.keys()))
|
_LOGGER.debug("Timetable: %s", sorted(timetable.keys()))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user