FaserF / ha-deutschebahn

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

Stations with more than on Word return no data #44

Open MystifHA opened 3 months ago

MystifHA commented 3 months ago

The problem

Connections that contain stationnames with two or more words, like for example Nürnberg-Stein

image return no values. How can i fix this when creating the connection ?

I think it has something to do with the underscores.

Thanks a lot !

What version of Home Assistant Core has the issue?

2024.7.3

What version of DeutscheBahn Integration has the issue?

3.0.1

What type of installation are you running?

Home Assistant OS

Example YAML snippet

Example Sensor:
sensor.heilsbronn_to_nurnberg_stein

Anything in the logs that might be useful for us?

No response

Additional information

No response

FaserF commented 3 months ago

This seems to be the same issue as #38 I have prepared a fix. But it has to be merged into the Schiene python Module to be fixed

MystifHA commented 3 months ago

I have no Problem with Nürnberg. Connections to Nürnberg deliver correct results. Only if the stationname consists of two or more words it delivers no results.

fuslwusl commented 4 weeks ago

Same problem here. Connections with ßöäü do not work anymore since v3.0.2. version 3.0.1 works!

FaserF commented 3 weeks ago

Same problem here. Connections with ßöäü do not work anymore since v3.0.2. version 3.0.1 works!

This is not true. In general those stations work. I have also tested it for example with "München-Pasing" to "Würzburg" which just works fine. I have no clue why only some stations are not working right now. Can you tell me what exactly worked in 3.0.1 thats now not working anymore with 3.0.2?

2024-10-13 15:40:17.282 DEBUG (MainThread) [custom_components.deutschebahn.sensor] Update the connection data for 'München-Pasing' 'Nürnberg-Stein'
2024-10-13 15:40:17.498 DEBUG (SyncWorker_59) [custom_components.deutschebahn.sensor] Fetched raw data: []

---> No issue with the integration, more with the dependency schiene, maybe my PR will help for this here too https://github.com/kennell/schiene/pull/39

"München-Pasing" to "Nürnberg-Stein" for example does not work.