fix(pkg/config): option to select all, enable or disable temperature sensors

This commit is contained in:
2019-06-15 11:49:46 +02:00
parent 525a250f3c
commit 7a3b3c6218
8 changed files with 58 additions and 12 deletions

View File

@ -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)
}