FaserF / ha-deutschebahn

Unofficial HA DB Integration, due to removal as of Home Assistant 2022.11
Apache License 2.0
40 stars 7 forks source link

feat: :sparkles: Add options to filter the dataset. #23

Closed dev-stb closed 7 months ago

dev-stb commented 8 months ago

Hello @FaserF

thanks for your integration!

For my own use case I needed to extent the functionality a bit. And I thought maybe those changes could be beneficial to the community.

I'm not quite sure if the config flow would need some sort of migration or if the defaults do suffice for that. Any insight here would be greatly appreciated as this is my first work in the hassio ecosystem.

Currently the filter only apply to the data set and are not passed on to the actual "api" call as this is currently not supported. But I assume the backend library needs a refresh in the future anyway as the DBahn is currently showing a warning to switch over to the new design, and therefore indirectly announces to discontinue this service.

Proposed Changes

Related Issues

resolves FaserF/ha-deutschebahn#12

FaserF commented 7 months ago

Very good work! Thank you!