DurgNomis-drol / ha_toyota

Toyota Connected Services integration for Home Assistant.
MIT License
148 stars 32 forks source link

Validation errors for `VehicleResponseModel` #211

Closed 0p3t0 closed 10 months ago

0p3t0 commented 10 months ago

Dear @CM000n, Unfortunately I had read the changelog and perform 2 cleanup with full host reboot, before commenting, but I'm sad still not working.

I've deleted the HA Integration image

Removed integration from HACS image

Verified that in custom_components the folder /config/custom_components/toyota was not present. Perform a full host reboot Installed from HACS image

Installed integration image but same behavior after login image image and trying to select "configure" show this message image

Please let me know if I can help in other way, and I appreciate if you reopen issue #160 so we can add all relevant information there. I'm glad to help if possible, but do not think I didn't perform all tests before writing :D Thanks a lot!

Unfortunately also with v2.0.0 still not working image

Someone else who hasn't read the changelog properly https://github.com/DurgNomis-drol/ha_toyota/releases/tag/v2.0.0 😉 😛

_Originally posted by @CM000n in https://github.com/DurgNomis-drol/ha_toyota/issues/160#issuecomment-1892353695_

CM000n commented 10 months ago

There is no "still" 😉 This is a completely new error and has to do with an incompatibility of your vehicle with the pydantic models we use for the mytoyota lib. This means that the error must also be rectified there.

I will not open Issue #160 as it has mutated into a discussion for all sorts of different errors. This makes it impossible to trace them specifically. Please open appropriate issues. In your original message you didn't write anything about the validation errors, which is why this went under too much in this thread with all possible errors and simply sounded like a faulty setup. Sorry for that 😞

Thank you for your notification and detailed error description

CM000n commented 10 months ago

Really interesting @0p3t0, you're the first one who didn't get any basic car information back from the API endpoints. Can you perhaps provide some more information about your vehicle and a screenshot from the original Toyota app?

DariusIva commented 10 months ago

Hey, I had exactly the same problem. I think the problem was that there was two cars registered in app. Even though it said both cars were migrated it somehow still failed. I have download old app, logged in, got error that both cars were migrated and i should use new app. When I opened new app it said that one of the cars did not have active "Connected Services Centre". After I activated it everything works fine.

CM000n commented 10 months ago

Thank you for reporting @Darka920. I was already thinking something like that, as it is really basic information that does not arrive in the pydantic model for @0p3t0. Can you please check whether the same case as for @Darka920 also applies to yourself @0p3t0?

0p3t0 commented 10 months ago

Dear @CM000n , @Darka920 , I had exactly same issue, removing the other veichle seems the integration started properly, now I can see integration starting properly and some data are available. I'll have a look this evening to check the update of the data, but I'm pretty sure everything is now clear about the error. Thanks a lot for the great job! I'm glad to help if any additional tests are required, of course =)

CM000n commented 10 months ago

Nice to hear that 😊 I am closing this because the error is not on our side but because a faulty/incomplete migration of the vehicle to the new API