FaserF / ha-deutschebahn

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

Incorrect value in case of delay #1

Closed xMuehlex closed 2 years ago

xMuehlex commented 2 years ago

Describe the bug In the case of a late evening delay, where a train arrives after 0:00, the delay is output as a negative value.

Expected behavior The delay should be output as a positive number in minutes IMG_5852

Version Details

FaserF commented 2 years ago

Unfortunatly that is a dependency issue, see here: https://github.com/kennell/schiene/blob/01284d7786f2b2ba2328ddf56900ac73f927f56b/schiene/schiene.py#L103

I will try to fix it in the dependency and ask kennel to merge it into https://github.com/kennell/schiene

FaserF commented 2 years ago

Will be Fixed with release 1.0.2

FaserF commented 2 years ago

Version 1.0.2 has been released. It should fix the issue. Please let me know if the issue still exists afterwards.