NVMeSensor: Centralise configuration type
The objectType populated in the Sensor instance was different to the
configuration name used by NVMeSensorMain, which lead to sensors not
being removed with their EntityManager configuration went away.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Ifa3c8f41fa8367d8fae62fe0d9b63a2b1675b53f
diff --git a/src/NVMeSensor.cpp b/src/NVMeSensor.cpp
index 5f66eb3..cdaa28b 100644
--- a/src/NVMeSensor.cpp
+++ b/src/NVMeSensor.cpp
@@ -29,8 +29,8 @@
const std::string& sensorConfiguration,
const int busNumber) :
Sensor(escapeName(sensorName), std::move(thresholdsIn), sensorConfiguration,
- "xyz.openbmc_project.Configuration.NVMe", false, false, maxReading,
- minReading, conn, PowerState::on),
+ NVMeSensor::CONFIG_TYPE, false, false, maxReading, minReading, conn,
+ PowerState::on),
bus(busNumber), objServer(objectServer)
{
sensorInterface = objectServer.add_interface(