mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-09 20:31:10 +00:00
skip duplacate sensors
This commit is contained in:
parent
4fd3391c70
commit
7455a7b7d6
1 changed files with 4 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue