Hyundai-Kia-Connect / kia_uvo

A Home Assistant HACS integration that supports Kia Connect(Uvo) and Hyundai Bluelink. The integration supports the EU, Canada and the USA.
MIT License
390 stars 80 forks source link

Sensors are unavailable since 2.24.1 #858

Closed JordanM1738 closed 3 months ago

JordanM1738 commented 3 months ago

Please check Services, Known Bug / Issues and Troubleshooting over here first: https://github.com/fuatakgun/kia_uvo/blob/master/README.md Region and Brand of car Canada Hyundai

Version of the integration 2.24.1

Describe the bug Lots of sensors are unavailable since 2.24.1. Battery, Fuel, Odometer

Debug logs if an error occurred Enregistreur: homeassistant.components.sensor Source: helpers/entity_platform.py:350 intégration: Capteur (documentation, problèmes) S'est produit pour la première fois: 12:45:10 (1 occurrences) Dernier enregistrement: 12:45:10

Error while setting up kia_uvo platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 350, in _async_setup_platform await asyncio.shield(awaitable) File "/config/custom_components/kia_uvo/sensor.py", line 261, in async_setup_entry if self.vehicle.daily_stats: ^^^^ NameError: name 'self' is not defined

To Reproduce Install 2.24.1, 2.24.0 works fine

Expected behavior

Screenshots If applicable, add screenshots to help explain your problem.

Additional context

cdnninja commented 3 months ago

Oops, can you try 2.24.2?

JordanM1738 commented 3 months ago

it works fine with 2.24.2 Thanks

mikejward commented 3 months ago

I think it's related to this but there seems to be one missing from my Niro EV too - "sensor.niro_monthly_energy_consumption" as my dashboard is showing it as unavailable now.

Region and Brand of car Europe Kia

Version of the integration 2.24.2

Apologies if this is wrong - never reported an issue before. Go easy on me

cdnninja commented 3 months ago

Unless all unavailable that's a different issue. Please create and issue and post logs for that.