-
Notifications
You must be signed in to change notification settings - Fork 35
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
vehicle without vin #133
Comments
All cars are given a VIN number. So I am not sure that I understand. What car do you have and what model year? Are you connecting your car or are you connecting the headunit? |
Yes, there is no Using that script, https://github.com/DurgNomis-drol/mytoyota#usage, here are the cars returned :
The first entry is the RAV4 PHEV car, the second is the multimedia system associated to the car. |
Right, it seems that Toyota have chosen to make a separat entry for their nav units. Right now this is not supported, and I don't have access to a car that does this. So I can't tell what needs to be done for this to work. Allowing vehicles without a vin number, will not add support for these navunits anyways. But we should add a check that just ignores cars with no vin number so the we don't get an error. |
Yes, agree with that.
I solved the issue by adding a check while iterating over cars : cars = await with_timeout(client.get_vehicles())
for car in cars:
+ if not car['vin']:
+ continue
+
vehicle = await client.get_vehicle_status(car) I can submit a PR if you want. |
Please do 😃 Contributions are always welcome |
Fixes #133 Signed-off-by: Pierre Belloy <p.belloy@axelor.com>
client.get_vehicles()
can return vehicles that don't have anyvin
This is associated to a multimedia system Touch & Go. Here is an example of the data :
This cause
404 Not Found
issues when trying to fetch the vehicle status fromclient.get_vehicle_status(car)
and integration fail to setup.The text was updated successfully, but these errors were encountered: