From c1b2ac40dfae74c5225245c1f85972f040e665b7 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Mon, 3 Mar 2025 20:22:41 -0500 Subject: [PATCH] Updated Temperature Parsing --- hwmonDaemon.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hwmonDaemon.py b/hwmonDaemon.py index 594795c..bbe1175 100644 --- a/hwmonDaemon.py +++ b/hwmonDaemon.py @@ -672,7 +672,9 @@ class SystemHealthMonitor: try: # Handle temperature values with °C if isinstance(raw_value, str) and '°C' in raw_value: - return int(raw_value.replace('°C', '')) + # Extract only the numeric portion before °C + temp_value = raw_value.split('°C')[0].strip() + return int(temp_value) # Handle time format (e.g., '15589h+17m+33.939s') if 'h+' in raw_value: return int(raw_value.split('h+')[0])