mirror of
https://github.com/teslamate-org/teslamate.git
synced 2026-01-24 21:06:08 +08:00
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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user