mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-10 04:41: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":
|
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(
|
temp_sensors[s_type].append(
|
||||||
TemperatureSensor(
|
TemperatureSensor(
|
||||||
sensor_type=s_type,
|
sensor_type=s_type,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue