-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Nederlandse Spoorwegen to ignore trains in the past #138331
Conversation
Hey there @YarmoM, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
I am not sure how it works, but I am okay with taking code ownership for this integration and work on getting it to at least bronze quality. |
@CloCkWeRX, do you have any tips on how to get this PR moving? It seems that the code owner is unresponsive, I have even emailed him, but no response. |
6505505
to
50c156e
Compare
Patience is the key here. See also: https://developers.home-assistant.io/docs/review-process |
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
7f3043c
to
50c156e
Compare
50c156e
to
2316fec
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @Martreides 👍
../Frenck
* Update NS integration to show first next train instead of just the first. * Handle no first or next trip. * Remove debug statement. * Remove seconds and revert back to minutes. * Make use of dt_util.now(). * Fix issue with next train if no first train.
Breaking change
No
Proposed change
The Nederlandse Spoorwegen (NS) integration is supposed to provide information on when the next train leaves. However, it often does not provide the correct information because the integration takes the first train in the API response, due to one of two reasons the first train is usually not the one we need:
This is resolved by 1) determining per train which time to use (planned or actual/delayed), 2) ignoring all trains that left already.
Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
Not applicable since no changes made in intended functionality.
If the code communicates with devices, web services, or third-party tools:
Not applicable since no changes in communication with devices, web services, or third-party tools.
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
.To help with the load of incoming pull requests: