DurgNomis-drol / mytoyota

Python client for Toyota Connected Services API
MIT License
74 stars 28 forks source link

Error when running simple_client_example.py #368

Closed desosav closed 2 weeks ago

desosav commented 2 weeks ago

Describe the bug

The following error is displayed when running simple_client_example.py

Logging in... Retrieving cars... Traceback (most recent call last): File "/root/simple_client_example.py", line 73, in loop.run_until_complete(get_information()) File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/root/simple_client_example.py", line 49, in get_information await car.update() File "/root/mytoyota/lib/python3.11/site-packages/mytoyota/models/vehicle.py", line 106, in update for name, data in await responses: ^^^^^^^^^^^^^^^ File "/root/mytoyota/lib/python3.11/site-packages/mytoyota/models/vehicle.py", line 100, in parallel_wrap per r = await function() ^^^^^^^^^^^^^^^^ File "/root/mytoyota/lib/python3.11/site-packages/mytoyota/api.py", line 199, in get_notification_endpoin t parsed_response = await self._request_and_parse( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/mytoyota/lib/python3.11/site-packages/mytoyota/api.py", line 55, in _request_and_parse return model(**response) ^^^^^^^^^^^^^^^^^ File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init pydantic.error_wrappers.ValidationError: 1 validation error for NotificationResponseModel payload -> 0 -> notifications -> 4 -> vin none is not an allowed value (type=type_error.none.not_allowed)

To Reproduce Steps to reproduce the behavior:

python simple_client_example.py

desosav commented 2 weeks ago

Tested again today and it seems to be working. I am closing this issue!