Add chassis and inventory associations to PSU Pwm
PSU pwm sensors are not associated with chassis base
board object path. This causes the PSU pwm sensors
not list under chassis redfish object. Added chassis
base board path and inventory object path associations
to PSU Pwm Sensors.
Tested:
Get on redfish chassis/<chassis id>/Thermal and
chassis/<chassis id>/sensors redfish URI shows
PSU Pwm sensors.
Change-Id: Ia862ecff058ca43fee38a6f71bdd57f8c135aae2
Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
diff --git a/include/PwmSensor.hpp b/include/PwmSensor.hpp
index 345e7b5..f0dc7e6 100644
--- a/include/PwmSensor.hpp
+++ b/include/PwmSensor.hpp
@@ -8,8 +8,10 @@
{
public:
PwmSensor(const std::string& name, const std::string& sysPath,
+ std::shared_ptr<sdbusplus::asio::connection>& conn,
sdbusplus::asio::object_server& objectServer,
- const std::string& sensorConfiguration);
+ const std::string& sensorConfiguration,
+ const std::string& sensorType);
~PwmSensor();
private: