State.Host: use PDI constants

Pull string literals from PDI for xyz.openbmc_project.State.Host
interface.

Tested: Inspection only.

Change-Id: Ia5ea6e67fc6c6925c3febcc28503408d5c028075
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/host-bmc/host_pdr_handler.cpp b/host-bmc/host_pdr_handler.cpp
index de828ec..46d4475 100644
--- a/host-bmc/host_pdr_handler.cpp
+++ b/host-bmc/host_pdr_handler.cpp
@@ -12,6 +12,7 @@
 #include <sdeventplus/exception.hpp>
 #include <sdeventplus/source/io.hpp>
 #include <sdeventplus/source/time.hpp>
+#include <xyz/openbmc_project/State/Host/client.hpp>
 
 #include <cassert>
 #include <fstream>
@@ -19,6 +20,8 @@
 
 PHOSPHOR_LOG2_USING;
 
+using HostState = sdbusplus::common::xyz::openbmc_project::state::Host;
+
 namespace pldm
 {
 using namespace pldm::responder::events;
@@ -98,12 +101,13 @@
     hostOffMatch = std::make_unique<sdbusplus::bus::match_t>(
         pldm::utils::DBusHandler::getBus(),
         propertiesChanged("/xyz/openbmc_project/state/host0",
-                          "xyz.openbmc_project.State.Host"),
+                          HostState::interface),
         [this, repo, entityTree, bmcEntityTree](sdbusplus::message_t& msg) {
             DbusChangedProps props{};
             std::string intf;
             msg.read(intf, props);
-            const auto itr = props.find("CurrentHostState");
+            const auto itr =
+                props.find(HostState::property_names::current_host_state);
             if (itr != props.end())
             {
                 PropertyValue value = itr->second;