sdbusplus: remove deprecated variant_ns

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Icc64aefa6ac9a73a103d877f6639495af57b4229
diff --git a/src/IntrusionSensorMain.cpp b/src/IntrusionSensorMain.cpp
index b89f628..f6cf9aa 100644
--- a/src/IntrusionSensorMain.cpp
+++ b/src/IntrusionSensorMain.cpp
@@ -92,8 +92,7 @@
         // judge class, "Gpio" or "I2C"
         auto findClass = baseConfiguration->second.find("Class");
         if (findClass != baseConfiguration->second.end() &&
-            sdbusplus::message::variant_ns::get<std::string>(
-                findClass->second) == "Gpio")
+            std::get<std::string>(findClass->second) == "Gpio")
         {
             *pType = IntrusionSensorType::gpio;
         }
@@ -117,8 +116,7 @@
             try
             {
                 *pGpioInverted =
-                    (sdbusplus::message::variant_ns::get<std::string>(
-                         findGpioPolarity->second) == "Low");
+                    (std::get<std::string>(findGpioPolarity->second) == "Low");
             }
             catch (const std::bad_variant_access& e)
             {
@@ -150,10 +148,8 @@
 
             try
             {
-                *pBusId = sdbusplus::message::variant_ns::get<uint64_t>(
-                    findBus->second);
-                *pSlaveAddr = sdbusplus::message::variant_ns::get<uint64_t>(
-                    findAddress->second);
+                *pBusId = std::get<uint64_t>(findBus->second);
+                *pSlaveAddr = std::get<uint64_t>(findAddress->second);
             }
             catch (const std::bad_variant_access& e)
             {