Check readability of sensor files in TempCollector

This commit is contained in:
Thomas Roehl 2022-05-13 13:32:54 +02:00
parent 857903be2b
commit 9886f14d14

View File

@ -116,6 +116,10 @@ func (m *TempCollector) Init(config json.RawMessage) error {
}
// Sensor file
_, err = ioutil.ReadFile(file)
if err != nil {
continue
}
sensor.file = file
// Sensor tags