question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add On stopped working since today

See original GitHub issue

Please 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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:30 (8 by maintainers)

github_iconTop GitHub Comments

5reactions
fuatakguncommented, Feb 8, 2022

Do not worry, it will be broken in next couple of hours 😃 i am working on a fix

4reactions
fuatakguncommented, Feb 7, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Kodi not working? How to fix Kodi problems (Updated for 2022)
Is Kodi not working for you? In this article we'll be explaining how to fix Kodi problems including crashing, and videos that won't...
Read more >
Why Is My Kodi Not Working? Common Problems and Fixes
Kodi addons not working usually means they are not fetching any streaming links or the links they are scraping are not streaming any...
Read more >
Is Your Kodi Not Working? Here Is How You Can Fix Common ...
Here are the Kodi problems you are most likely to run into: 1- Kodi crashing upon loading. 2-Inability to delete addons.
Read more >
Kodi Not Working? Try these Solutions for 7 Most Common ...
7 Kodi not Working Problems Faced by Kodi Users · Kodi no stream available error; Slow streaming · Open Kodi > Go to...
Read more >
Why Is Kodi Not Working? 12 Common Problems & Fixes
Fix #4: Update the 'URL Resolver' Addon. In many cases, faulty addons cause Kodi to not work properly. We suggest you disconnect from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found