diff --git a/src/de/p1st/monitor/loggers/drive_temp.py b/src/de/p1st/monitor/loggers/drive_temp.py index a49bbc9..8a9a40d 100644 --- a/src/de/p1st/monitor/loggers/drive_temp.py +++ b/src/de/p1st/monitor/loggers/drive_temp.py @@ -40,7 +40,7 @@ class DriveTempLogger(Logger): min_temp = data[1] max_temp = data[2] message = f'Temperature of drive type {self.type} is in range {min_temp}:{max_temp}' - return WarnData(data[0], max_temp, message) + return WarnData(date=data[0], value=max_temp, message=message) def read_data(self) -> list[any]: min_temp, max_temp = self.get_drive_temp() @@ -83,7 +83,7 @@ class DriveTempLogger(Logger): } Problem: If one has multiple drives attached, they can't be distinguished. - https://github.com/giampaolo/psutil/issues/1902 + TODO https://github.com/giampaolo/psutil/issues/1902 Therefore, we currently accumulate the maximum and minimum values of all drives of the same type. """