fix(unraid): temperature of disks can be null (#4788)
This commit is contained in:
1 parent
7d3322576c
commit
60f9d4e6e6
2 files changed
+2
-2
No files matched your search
@@ -65,7 +65,7 @@ export class UnraidIntegration extends Integration implements ISystemHealthMonit
|
|||||||
})),
|
})),
|
||||||
smart: systemInfo.array.disks.map((disk) => ({
|
smart: systemInfo.array.disks.map((disk) => ({
|
||||||
deviceName: disk.name,
|
deviceName: disk.name,
|
||||||
temperature: disk.temp,
|
temperature: disk.temp ?? null,
|
||||||
overallStatus: disk.status,
|
overallStatus: disk.status,
|
||||||
})),
|
})),
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export const unraidSystemInfoSchema = z.object({
|
|||||||
fsFree: z.number(),
|
fsFree: z.number(),
|
||||||
fsUsed: z.number(),
|
fsUsed: z.number(),
|
||||||
status: z.string(),
|
status: z.string(),
|
||||||
temp: z.number(),
|
temp: z.number().nullish(),
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in new issue
Block a user