mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-05 06:09:16 +01:00
fix(unraid): temperature of disks can be null (#4788)
This commit is contained in:
@@ -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,
|
||||
})),
|
||||
};
|
||||
|
||||
@@ -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(),
|
||||
}),
|
||||
),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user