From 25e572bb9b4e160b189dcbbb27c3b138d769a18d Mon Sep 17 00:00:00 2001 From: Adrian Kumpf <8999358+adriankumpf@users.noreply.github.com> Date: Sat, 22 Jan 2022 13:03:48 +0100 Subject: [PATCH] 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%. --- lib/teslamate/vehicles/vehicle.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/teslamate/vehicles/vehicle.ex b/lib/teslamate/vehicles/vehicle.ex index 9ec86df8..d8d91f54 100644 --- a/lib/teslamate/vehicles/vehicle.ex +++ b/lib/teslamate/vehicles/vehicle.ex @@ -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}