You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
This error comes from the Home Assistant integration, but the traceback shows that it occurs in the library.
It works, but should be handled better the in code. Happens when an error occurred at Toyota's servers.
To Reproduce
Steps to reproduce the behavior:
Go to '...'
Click on '....'
Scroll down to '....'
See error
Expected behavior
No error.
Additional context
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 147, in _async_update_data
return await self.update_method()
File "/config/custom_components/toyota/__init__.py", line 105, in async_update_data
data = await asyncio.gather(
File "/usr/local/lib/python3.9/site-packages/mytoyota/client.py", line 419, in get_driving_statistics
raw_statistics = await self.api.get_driving_statistics_endpoint(
File "/usr/local/lib/python3.9/site-packages/mytoyota/api.py", line 96, in get_driving_statistics_endpoint
return await self.controller.request(
File "/usr/local/lib/python3.9/site-packages/mytoyota/controller.py", line 202, in request
+ response["code"]
KeyError: 'code'
The text was updated successfully, but these errors were encountered:
Describe the bug
This error comes from the Home Assistant integration, but the traceback shows that it occurs in the library.
It works, but should be handled better the in code. Happens when an error occurred at Toyota's servers.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No error.
Additional context
The text was updated successfully, but these errors were encountered: