-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for correcting status/online in tesla_custom v3.12.2 #621
Comments
i haven't tested your fix (will do so now) but this has been broken since 3.10.4. |
I just started with v3.12.2 but reading few reported bugs for this integration I got the idea that it stopped working after 3.10.4. Forgot to mention that HA needs to be restarted after the change. |
I just tested the v3.12.3 and updating the vehicle status works for now. Thanks @alandtse |
Just to give feedback one day after installing v2.13.3, although it seems to not harm, I see in logs the same call for update() twice at every 10s, once with update_vehicles=True and second with update_vehicles=False 2023-06-02 07:17:15.099 DEBUG (MainThread) [teslajsonpy.controller] Get vehicles. Force: False Time: 30 Interval 60 update_vehicles: True |
Version of the custom_component
v3.12.2
Configuration
Describe the bug
In v3.12.2 the status of the car is not correctly reflected. E.g. the asleep state is not shown unless the force update or wake_up buttons are clicked.
I was debugging the teslajsonpy and I realized that the API call for "vehicles" is not triggered. Going into details the following function in controller.update() is not called because the update_vehicles variable is False:
The tesla_custom integration seems to call the update() function with update_vehicles=False.
Quick fix for me was to use the following modification in tesla_custom/__init__.py:
Hope this helps.
Bogdan
The text was updated successfully, but these errors were encountered: