From 8845b1c8cb159397d91c74f425d0fba2df29b6df Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Mon, 3 Mar 2025 20:06:06 -0500 Subject: [PATCH] Updated temp sensors for nvmes --- hwmonDaemon.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hwmonDaemon.py b/hwmonDaemon.py index 71e9f96..7dc4e57 100644 --- a/hwmonDaemon.py +++ b/hwmonDaemon.py @@ -670,6 +670,9 @@ class SystemHealthMonitor: Parse SMART values handling different formats """ try: + # Handle temperature values with °C + if isinstance(raw_value, str) and '°C' in raw_value: + return int(raw_value.replace('°C', '')) # Handle time format (e.g., '15589h+17m+33.939s') if 'h+' in raw_value: return int(raw_value.split('h+')[0])