zacs / ha-gtfs-rt

Real-time transit information for Home Assistant
MIT License
69 stars 29 forks source link

Add more departure times as attributes #39

Open evandcoleman opened 2 months ago

evandcoleman commented 2 months ago

Resolves #35

Adds the ability to save more departure times. By default, 2 departures are fetched as is the current behavior. If you specify the max_departures config param, you can fetch a specific number or 0 for all departures.

I'm not totally sold on the (+x) naming of the attributes, so I'm open to suggestions.

image
DaAwesomeP commented 2 months ago

There should maybe be a configuration option for a maximum count in case there are a large number of scheduled arrivals.

evandcoleman commented 2 months ago

There should maybe be a configuration option for a maximum count in case there are a large number of scheduled arrivals.

Good idea! Done.