-
-
Notifications
You must be signed in to change notification settings - Fork 31.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
Update NSAPI to 3.0.2 #30971
Update NSAPI to 3.0.2 #30971
Conversation
Are you planning on updating https://github.com/home-assistant/home-assistant.io/blob/current/source/_integrations/nederlandse_spoorwegen.markdown too? |
Yes. As soon as NSAPI 3.0.2 (or whatever is the next version) launches, I will update the documentation. Technically, the current documentation is correct for 3.0.1, even though it will become obsolete and incorrect as of 31st of Jannuary 2020. |
Could we maybe get a warning in place when |
I also see E.g.:
|
@b10m Regarding platforms, well then _actual is the one you will want to use since it represents the "actual" platform whether changed or not. |
And by the way, I have also already changed the documentation (and will update more soon, hopefully today) with instructions on getting api tokens, NS no longer accepts email and password. |
We can detect these old configs easily, so why not? It's really simple, e.g.:
This gives a nice informative message like:
Please document that change as well, since people may use these attributes in their templates. Nevertheless, thanks for the upgrade. I should've pushed my local changes through long time ago, so thanks for doing that instead! |
@b10m that's a clever solution, I will add it to the current PR. Thing is, until we integrate 3.0.2 (just released), all solutions will fail on 31st of January. Hopefully we can merge this PR as soon as possible. |
@YarmoM are you going to update this PR to 3.0.2? That would save the trouble of opening yet another one for just a version bump. |
Good solution, going with that, assuming this is ok with the core devs. |
Goes together with home-assistant/core#30971
It seems the state attributes are changing slightly. Should we mention that in the breaking change paragraph? Regarding changing api key as stated in the breaking change paragraph, is that on top of last PR that required the api key instead of username and password or is it the same change? |
Theoretically, nothing has changed. #30599 pulled NS-api v3.0.0 which inadvertently introduced a consistency error, which I in turn corrected for in that PR. NS-API v3.0.2 fixes these errors and this is now reflected in this PR (code is a lot simpler now). Since #30599 hasn't made it into a release yet, if #30599 and #30971 make a release together, the behavior should not have changed. I did just notice that #30599 failed to mention the renaming of a few attributes in the breaking changes... My bad :( These changes were made for naming consistency. Could this then be added here in Breaking Changes?
No, this is a separate change on top of the last PR. NS made two changes: email/password is no longer accepted and a new API supersedes an old API. #30599 fixed the email/password change. #30971 fixes the change of API. |
We can still adjust the breaking change paragraph in #30599. Please do that or if it's locked, post it here and I'll change there. |
It is locked indeed. Something like this for the #30599 breaking changes (first line already exists):
|
Thanks! I've updated #30599. |
Tagging this for 0.105 since we want both breaking changes go out in the same release and the upstream api has already changed. |
Goes together with home-assistant/core#30971
Breaking Change:
The "RetrieveTripInformationPublic" API ("Public-Travel-Information" product) will be deprecated on 31-01-2020. All users MUST create a new API token for the "Reisinformatie" API ("Ns-App" product) and use that one instead.
Description:
The NSAPI dependency was updated to 3.0.2. Changes include:
Related issue (if applicable): not applicable
Pull request with documentation for home-assistant.io (if applicable): home-assistant/home-assistant.io#11843
Example entry for
configuration.yaml
(if applicable):Checklist:
tox
. Your PR cannot be merged unless tests passIf user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
python3 -m script.hassfest
.requirements_all.txt
by runningpython3 -m script.gen_requirements_all
..coveragerc
.If the code does not interact with devices: