-
Notifications
You must be signed in to change notification settings - Fork 34
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 "setup Connected Services Error" due to latest API Changes #240
Conversation
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.
LGTM! Can you confirm this works? 🚀
yes, that works (in my case). But as already written, I can't really validate whether this is a sufficient check, whether the connected services are set up, or whether it doesn't check something completely different now. |
Codecov Report
@@ Coverage Diff @@
## master #240 +/- ##
==========================================
- Coverage 94.64% 94.41% -0.24%
==========================================
Files 30 30
Lines 1607 1612 +5
==========================================
+ Hits 1521 1522 +1
- Misses 86 90 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes 📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today! |
Hy @DurgNomis-drol I would also like to suggest cancelling python3.7 support, since pylint < 3.0.0 is probably incompatible with python >= 3.11, but pylint >= 3.0.0 no longer supports python < 3.8 versions. |
@CM000n and @DurgNomis-drol I also fixed some other Pull requests today, and I observed the same. Python < 3.8 is not supported anymore by a lot of dependencies that we are using. Please see PR #237, where I also suggested to require Python >= 3.8.1. For me it is OK to go to Python >= 3.8 |
Regarding the actual change on the improved check of the connected services: I will try to check it tomorrow on my Toyota. |
I'm still using the 'old' MyT application, as I have not been converted yet to the 'MyToyota' app. |
Possible fix for DurgNomis-drol/ha_toyota#164
It seems that the previous API endpoint will continue to be used for the basic car information even after the switch to the new MyToyota app (until now).
However, the structure of the returned data has apparently changed, which is why the check whether Connected Services are activated fails.
In the case of my Toyota Corolla, the information about the Connected Service now looks like this:
This change requires that the query for activated connected services be adjusted to determine whether there is a connected service device with an activated status whose Vin matches the vehicle's Vin.
To be discussed: Perhaps checking for an activated device with a suitable Vin is not sufficient? Information from other users would be desirable. Maybe it also makes sense to skip checking whether connected services are activated entirely?