Closed ridderr closed 3 months ago
What year of car? Is it a phev?
Car build 2023 and it is a phev
Hi @cdnninja , I have added some debug information. Maybe this helps.
Does native app show driving stats?
Is this what you're looking for?
Seeing the same error with my PHEV, and only since last update.
+1.
if (
drivingInfoItem["drivingPeriod"] == 0
and drivingInfoItem["calculativeOdo"] > 0
):
can be changed to:
if (
drivingInfoItem["drivingPeriod"] == 0
and next((v for k, v in drivingInfoItem.items() if k.lower() == "calculativeodo"), 0) > 0
):
In that case we would atleast not have it raise on comparing it. The data would still lack of course, so if the issue lies elsewhere and the api is supposed to ship that info to all vehicles then please ignore this comment.
I have the same error in HA with a Kia xCeed PHEV 2020
+1
pr for eu-api published ^
should be fine now @ridderr if you update to latest. please check and verify.
Region and Brand of car KIA Sportage - Europe
Version of the integration V2.22.0
Describe the bug There are bugs reported in the log (see below)
Debug logs if an error occurred
To Reproduce Reported after each update with data from car