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
391 stars 81 forks source link

Missing unit of measurement #846

Closed jwillemsen closed 4 months ago

jwillemsen commented 4 months ago

Region and Brand of car

EU Kone EV 2024

Version of the integration

v2.22.0

Describe the bug

Found the following messages in the log, seems a unit of measurement is missing for several sensors

Debug logs if an error occurred

Entity sensor.kona_total_driving_range (<class 'custom_components.kia_uvo.sensor.HyundaiKiaConnectSensor'>) is using native unit of measurement 'None' which is not a valid unit for the device class ('distance') it is using; expected one of ['m', 'in', 'ft', 'mi', 'km', 'mm', 'cm', 'yd']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/Hyundai-Kia-Connect/kia_uvo/issues
Entity sensor.kona_ev_range (<class 'custom_components.kia_uvo.sensor.HyundaiKiaConnectSensor'>) is using native unit of measurement 'None' which is not a valid unit for the device class ('distance') it is using; expected one of ['m', 'in', 'ft', 'mi', 'km', 'mm', 'cm', 'yd']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/Hyundai-Kia-Connect/kia_uvo/issues
Entity sensor.kona_target_range_of_charge_ac (<class 'custom_components.kia_uvo.sensor.HyundaiKiaConnectSensor'>) is using native unit of measurement 'None' which is not a valid unit for the device class ('distance') it is using; expected one of ['m', 'in', 'ft', 'mi', 'km', 'mm', 'cm', 'yd']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/Hyundai-Kia-Connect/kia_uvo/issues
Entity sensor.kona_target_range_of_charge_dc (<class 'custom_components.kia_uvo.sensor.HyundaiKiaConnectSensor'>) is using native unit of measurement 'None' which is not a valid unit for the device class ('distance') it is using; expected one of ['m', 'in', 'ft', 'mi', 'km', 'mm', 'cm', 'yd']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/Hyundai-Kia-Connect/kia_uvo/issues

To Reproduce

Expected behavior

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

Additional context

jwillemsen commented 4 months ago

Closing, looks maybe there was some issue on the hyundai side, sensors are working, maybe something was missing in the plain data