Fixes #6, no temperatures shown on Raspberry Pi.

This commit is contained in:
Sean E. Russell 2021-01-27 09:06:09 -06:00
parent af20668cb5
commit 12257812ab

View File

@ -26,6 +26,7 @@ func devs() []string {
for _, sensor := range sensors { for _, sensor := range sensors {
label := sensor.SensorKey label := sensor.SensorKey
label = strings.TrimSuffix(sensor.SensorKey, "_input") label = strings.TrimSuffix(sensor.SensorKey, "_input")
label = strings.TrimSuffix(label, "_thermal")
rv = append(rv, label) rv = append(rv, label)
sensorMap[sensor.SensorKey] = label sensorMap[sensor.SensorKey] = label
} }