fix(unraid): temperature of disks can be null (#4788)

This commit is contained in:
Meier Lukas
2026-01-03 13:44:24 +01:00
committed by GitHub
parent 7d3322576c
commit 60f9d4e6e6
2 changed files with 2 additions and 2 deletions

View File

@@ -65,7 +65,7 @@ export class UnraidIntegration extends Integration implements ISystemHealthMonit
})),
smart: systemInfo.array.disks.map((disk) => ({
deviceName: disk.name,
temperature: disk.temp,
temperature: disk.temp ?? null,
overallStatus: disk.status,
})),
};

View File

@@ -34,7 +34,7 @@ export const unraidSystemInfoSchema = z.object({
fsFree: z.number(),
fsUsed: z.number(),
status: z.string(),
temp: z.number(),
temp: z.number().nullish(),
}),
),
}),