From ae9cf78f1c5741da23fe038075a9ffc7e9c957d5 Mon Sep 17 00:00:00 2001 From: Aveline <352441+ym@users.noreply.github.com> Date: Fri, 21 Nov 2025 01:44:50 +0100 Subject: [PATCH] fix(ota): set updating to false when no updates are available (#996) Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- internal/ota/ota.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/ota/ota.go b/internal/ota/ota.go index 52cbb6e2..52b38c7d 100644 --- a/internal/ota/ota.go +++ b/internal/ota/ota.go @@ -228,6 +228,13 @@ func (s *State) doUpdate(ctx context.Context, params UpdateParams) error { s.triggerComponentUpdateState("system", systemUpdate) } + if !appUpdate.pending && !systemUpdate.pending { + scopedLogger.Info().Msg("No updates available") + s.updating = false + s.triggerStateUpdate() + return nil + } + scopedLogger.Trace().Bool("pending", appUpdate.pending).Msg("Checking for app update") if appUpdate.pending {