From 7455a7b7d6e9f265f5c9ac491c27bf39b9e9b122 Mon Sep 17 00:00:00 2001 From: saqriphnix Date: Sat, 27 Jul 2024 19:09:33 +0300 Subject: [PATCH] skip duplacate sensors --- misc/sensors.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/misc/sensors.py b/misc/sensors.py index 983207a..c416771 100644 --- a/misc/sensors.py +++ b/misc/sensors.py @@ -66,7 +66,10 @@ class Sensors: ) ) case "nct6687": - for sensor in sensors: + # skipping first 8 elements as they're not informative + # while the last elements duplicate the first ones, + # but with more understandable names + for sensor in sensors[7::]: temp_sensors[s_type].append( TemperatureSensor( sensor_type=s_type,