Add On stopped working since today
See original GitHub issuePlease check Services, Known Bug / Issues and Troubleshooting over here first: https://github.com/fuatakgun/kia_uvo/blob/master/README.md Europe / Germany / KIA
Describe the bug After Restart, all entities are unavailable. Deleting the Integration and add it again does not fix the Issue.
Debug logs if an error occurred
Log after HA restart:
2022-02-07 09:18:47 ERROR (MainThread) [custom_components.kia_uvo.Vehicle] kia_uvo - Exception in update : string indices must be integers - traceback: Traceback (most recent call last):
File "/config/custom_components/kia_uvo/Vehicle.py", line 56, in update
self.vehicle_data = await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/kia_uvo/KiaUvoApiEU.py", line 427, in get_cached_vehicle_status
return response["resMsg"]["vehicleStatusInfo"]
TypeError: string indices must be integers
2022-02-07 09:18:47 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry xxx@xxx.de for kia_uvo
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 327, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/kia_uvo/__init__.py", line 218, in async_setup_entry
await update(dt_util.utcnow())
File "/config/custom_components/kia_uvo/__init__.py", line 207, in update
datetime.now(local_timezone) - vehicle.last_updated
TypeError: can't subtract offset-naive and offset-aware datetimes
Log after deleting and add again:
2022-02-07 10:12:13 ERROR (MainThread) [custom_components.kia_uvo.config_flow] kia_uvo Exception in kia_uvo login : string indices must be integers - traceback: Traceback (most recent call last): File "/config/custom_components/kia_uvo/config_flow.py", line 155, in async_step_user self.token = await self.hass.async_add_executor_job( File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/kia_uvo/KiaUvoApiEU.py", line 101, in login self.device_id, self.stamp = self.get_device_id() File "/config/custom_components/kia_uvo/KiaUvoApiEU.py", line 175, in get_device_id device_id = response["resMsg"]["deviceId"] TypeError: string indices must be integers
I also tried with a newly created car sharing account.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:30 (8 by maintainers)
Do not worry, it will be broken in next couple of hours 😃 i am working on a fix
the only difference between different apps, are their identification numbers located here: https://github.com/fuatakgun/kia_uvo/blob/master/custom_components/kia_uvo/KiaUvoApiEU.py#L40
Apparently, because of deprecation, current values are not working anymore, I need find out new ID either through code or traffic, but this has to wait till evening.