-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support multiple directions (#33)
This allows specifying multiple directions by separating them with commas. This allows to only see the directions you want to see. E.g. only inwards town and along the Ring at Schönhauser Allee. For each direction, the departures will be fetched individually and collected together. Since S41/S42 show up for both directions on the Ring, the departures have to de-duplicated, for which I used a set and made Departure hashable. The hash is calculated over all information exposed in to_dict, since that's everything, which users have access to over the sensor.
- Loading branch information
1 parent
e01793b
commit b743bdf
Showing
3 changed files
with
32 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters