hacs-hafas icon indicating copy to clipboard operation
hacs-hafas copied to clipboard

Support for additional profiles

Open flat1984 opened this issue 10 months ago • 2 comments

Hi, this HA-addon looks very promising. As I understand, there are currently 3 pyhafas profiles supported: DBProfile, KVBProfile, VSNProfile.

If I look at the profiles provided in the pyhafas-repository, there are a few more already implemented: https://github.com/FahrplanDatenGarten/pyhafas/tree/main/pyhafas/profile

What does it need to get them also included? I would especially be interested to help with NASA.

flat1984 avatar Jan 03 '25 15:01 flat1984

Yes, those are the three profiles we were personally interested in originally. And we said, we would accept more profiles as soon as someone asks for them.

There are basically two places, where they will need to be added:

  • config_flow.py and
  • __init__.py.

See this search: https://github.com/search?q=repo%3Aakloeckner%2Fhacs-hafas%20kvb&type=code

If you could propose a PR, I think it will be straightforward to merge it.

akloeckner avatar Jan 03 '25 15:01 akloeckner

See #26 for a good example.

akloeckner avatar Feb 15 '25 23:02 akloeckner