Change EM's ObjectManager path

In newest Openbmc version, intelcpusensor will send error log:
intelcpusensor[2634]: While calling GetManagedObjects on
service:xyz.openbmc_project.EntityManager exception
name:org.freedesktop.DBus.Error.UnknownObjectand
description:Unknown object '/'. was thrown/.

After PR https://gerrit.openbmc.org/c/openbmc/entity-manager/+/57279
merged into Openbmc master, dbus path of "GetManagedObjects" is changed.

Refs:
https://gerrit.openbmc.org/c/openbmc/entity-manager/+/57279
https://gerrit.openbmc.org/c/openbmc/dbus-sensors/+/57291

Tested:
Check ADC, Hwmon, PSU and IntelCPU snesor works good with no
GetManagedObjects error.

Signed-off-by: JeffLin <JeffLin2@quantatw.com>
Change-Id: I9c4d9109377d5210fdd941efc051fa7021b40bd9
diff --git a/src/IpmbSensor.cpp b/src/IpmbSensor.cpp
index 5dabc25..96ca768 100644
--- a/src/IpmbSensor.cpp
+++ b/src/IpmbSensor.cpp
@@ -560,8 +560,8 @@
             }
         }
         },
-        entityManagerName, "/", "org.freedesktop.DBus.ObjectManager",
-        "GetManagedObjects");
+        entityManagerName, "/xyz/openbmc_project/inventory",
+        "org.freedesktop.DBus.ObjectManager", "GetManagedObjects");
 }
 
 void reinitSensors(sdbusplus::message_t& message)
diff --git a/src/MCUTempSensor.cpp b/src/MCUTempSensor.cpp
index ba68bed..2c28fe0 100644
--- a/src/MCUTempSensor.cpp
+++ b/src/MCUTempSensor.cpp
@@ -250,8 +250,8 @@
             }
         }
         },
-        entityManagerName, "/", "org.freedesktop.DBus.ObjectManager",
-        "GetManagedObjects");
+        entityManagerName, "/xyz/openbmc_project/inventory",
+        "org.freedesktop.DBus.ObjectManager", "GetManagedObjects");
 }
 
 int main()
diff --git a/src/Utils.cpp b/src/Utils.cpp
index 700b336..e621fa0 100644
--- a/src/Utils.cpp
+++ b/src/Utils.cpp
@@ -150,8 +150,8 @@
         managedObj.clear();
         sdbusplus::message_t getManagedObjects =
             dbusConnection->new_method_call(
-                entityManagerName, "/", "org.freedesktop.DBus.ObjectManager",
-                "GetManagedObjects");
+                entityManagerName, "/xyz/openbmc_project/inventory",
+                "org.freedesktop.DBus.ObjectManager", "GetManagedObjects");
         try
         {
             sdbusplus::message_t reply =