Don't warn in case of common faulty update status

After successfully installing an update the Tesla API often reports
"downloading" as `status` while `install_perc` is at 100%.
This commit is contained in:
Adrian Kumpf
2022-01-22 13:03:48 +01:00
parent 6c53788738
commit 25e572bb9b
+2 -1
View File
@@ -1055,7 +1055,8 @@ defmodule TeslaMate.Vehicles.Vehicle do
{:next_event, :internal, {:update, {:online, vehicle}}}}
%VehicleState{timestamp: ts, car_version: vsn, software_update: %SW{} = software_update} ->
if software_update.status != "" do
if software_update.status != "" and
not (software_update.status == "downloading" and software_update.install_perc == 100) do
Logger.error(
"""
Unexpected update status: #{software_update.status}