From 3573fb654dd4dfe7e51e28770814055fb580cf22 Mon Sep 17 00:00:00 2001 From: petersulyok Date: Mon, 1 Jan 2024 19:30:37 +0100 Subject: [PATCH] Fixed: pylint C0325 warning fixed. --- src/diskinfo/disk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diskinfo/disk.py b/src/diskinfo/disk.py index b96e0f1..bf4184b 100644 --- a/src/diskinfo/disk.py +++ b/src/diskinfo/disk.py @@ -555,7 +555,7 @@ def get_temperature(self) -> float: if not self.__hwmon_path or not os.path.exists(self.__hwmon_path): raise RuntimeError(f"ERROR: File does not exists (hwmon={self.__hwmon_path})") try: - temp = (float(_read_file(self.__hwmon_path)) / 1000.0) + temp = float(_read_file(self.__hwmon_path)) / 1000.0 except ValueError as e: raise e return temp