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) => ({
|
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