mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix null in sensors discovery (#16201)
This commit is contained in:
@@ -198,7 +198,7 @@ class Sensor implements DiscoveryModule, PollerModule
|
||||
'WHERE `device_id`=? AND `sensor_class`=? AND `sensor_type`=? AND `sensor_index`=?',
|
||||
[$this->device_id, $this->type, $this->subtype, $this->index]
|
||||
);
|
||||
$this->sensor_id = $sensor['sensor_id'];
|
||||
$this->sensor_id = $sensor['sensor_id'] ?? null;
|
||||
|
||||
return $sensor;
|
||||
}
|
||||
|
Reference in New Issue
Block a user