Open capandcamera opened 11 months ago
Also experiencing this. My guess is that it's due to the component loading all of the vehicle data on startup. Those requests take some time to go through on my end.
Maybe to mitigate this, we store the vehicle data in a table. We can then use a last updated time stamp to determine whether or not we should request new data from BlueLink, rather than load it into memory each time the program starts. Introducing a table or some way to persist vehicle data would also lower the total number of requests from someone who keeps restarting home assistant.
Another way could be by making the request happen asynchronously, since waiting for it blocks HA from finishing startup.
great suggestions, I would go with option 1 because home assistant is signaling all integrations about readiness of the system (if everything is loaded and initialized)
If we skip the initial loading and initialize afterwards in unknown timeframe, we would not give the right signal to the rest of the ecosystem.
Agree on option 1, store the last updated at and check if it is in limits. If yes, use the cached values, if not ask for a new update.
Other than that, I am personally not bothered with this at all.
but the issue coming from @capandcamera is not related to a warning but an actual bug in the code, we should never divide something to zero :)
Region and Brand of car UK, Hyundai
Version of the integration Integration Version: v.2.14.1 Home Assistant Version: 2023.9.3
Describe the bug A clear and concise description of what the bug is.
Recently the kia_uvo integration has been slowing down the startup of my home assistant installation. I've noticed the below error logs (included the DEBUG entries prior to this occurring too)
Debug logs if an error occurred
To Reproduce Restart homeassistant
Expected behavior Integration to load without error and within acceptable timeframe