From 76774b4692e2d81fbeb2a2b077b7fe774c3f405c Mon Sep 17 00:00:00 2001 From: csawatzky Date: Mon, 19 Jan 2026 12:31:51 -0600 Subject: [PATCH] fix bug where the version check was not functioning as expected when the version in the device status was empty or the requiredVersion was N/A --- src/models/Device.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/models/Device.ts b/src/models/Device.ts index ae03634..7b25c13 100644 --- a/src/models/Device.ts +++ b/src/models/Device.ts @@ -182,6 +182,17 @@ export class Device { } private versionComparison(deviceVersion: string, requiredVersion: string): boolean { + // Feature explicitly not supported on this platform + if (!requiredVersion || requiredVersion === "N/A") { + return false; + } + + // Device firmware missing / unset + if (!deviceVersion || deviceVersion.trim() === "") { + return false; + } + + //compare the versions const parse = (v: string) => { const [core, pre] = v.split("-"); const parts = core.split(".").map(n => parseInt(n, 10));