fix(pkg/config): option to select all, enable or disable temperature sensors
This commit is contained in:
@ -48,10 +48,6 @@ func CompressTemperature(temperatures []*types.Temperature) []*types.Temperature
|
||||
|
||||
// Copy all remaining entries from the map into the array
|
||||
for _, lastTemperatureBySensor := range lastTemperatureBySensors {
|
||||
if lastTemperatureBySensor.UpdateDate == nil {
|
||||
now := time.Now()
|
||||
lastTemperatureBySensor.UpdateDate = &now
|
||||
}
|
||||
compressedTemperatures = append(compressedTemperatures, lastTemperatureBySensor)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user