Sensor.Threshold.*: use PDI constants

Use PDI constants instead of local definitions.

Tested: Unit Tests Pass

Change-Id: I2472307d1f4f2d65ad99440243444057c652b85a
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/dbus/dbushelper.hpp b/dbus/dbushelper.hpp
index 43a9d3a..94cf664 100644
--- a/dbus/dbushelper.hpp
+++ b/dbus/dbushelper.hpp
@@ -5,10 +5,17 @@
 #include <phosphor-logging/log.hpp>
 #include <sdbusplus/bus.hpp>
 #include <sdbusplus/exception.hpp>
+#include <xyz/openbmc_project/Sensor/Threshold/Critical/common.hpp>
+#include <xyz/openbmc_project/Sensor/Threshold/Warning/common.hpp>
 
 #include <string>
 #include <variant>
 
+using SensorThresholdWarning =
+    sdbusplus::common::xyz::openbmc_project::sensor::threshold::Warning;
+using SensorThresholdCritical =
+    sdbusplus::common::xyz::openbmc_project::sensor::threshold::Critical;
+
 namespace pid_control
 {
 
@@ -16,10 +23,6 @@
 {
   public:
     static constexpr char propertiesintf[] = "org.freedesktop.DBus.Properties";
-    static constexpr char criticalThreshInf[] =
-        "xyz.openbmc_project.Sensor.Threshold.Critical";
-    static constexpr char warningThreshInf[] =
-        "xyz.openbmc_project.Sensor.Threshold.Warning";
     static constexpr char availabilityIntf[] =
         "xyz.openbmc_project.State.Decorator.Availability";