virtualSensor: change EM's ObjectManager path

EntityManager moves its ObjectManager in commit [1], this patch is to
change accordingly. Please see [1] for why we made that change.

[1] https://gerrit.openbmc.org/c/openbmc/entity-manager/+/57279

Tested: code compiles. I don't have a system with this repo enabled.
But code inspection can show that only ObjectManager path changed.

Signed-off-by: Nan Zhou <nanzhoumails@gmail.com>
Change-Id: Ib5460433558d9d9d5e12465fe3d78a92159c573b
diff --git a/virtualSensor.cpp b/virtualSensor.cpp
index 083178f..db07548 100644
--- a/virtualSensor.cpp
+++ b/virtualSensor.cpp
@@ -9,8 +9,6 @@
 static constexpr bool DEBUG = false;
 static constexpr auto busName = "xyz.openbmc_project.VirtualSensor";
 static constexpr auto sensorDbusPath = "/xyz/openbmc_project/sensors/";
-static constexpr auto entityManagerBusName =
-    "xyz.openbmc_project.EntityManager";
 static constexpr auto vsThresholdsIfaceSuffix = ".Thresholds";
 static constexpr std::array<const char*, 1> calculationIfaces = {
     "xyz.openbmc_project.Configuration.ModifiedMedian"};
@@ -642,7 +640,8 @@
 
     try
     {
-        auto method = bus.new_method_call(entityManagerBusName, "/",
+        auto method = bus.new_method_call("xyz.openbmc_project.EntityManager",
+                                          "/xyz/openbmc_project/inventory",
                                           "org.freedesktop.DBus.ObjectManager",
                                           "GetManagedObjects");
         auto reply = bus.call(method);