Describe the bug
bmcweb/redfish-core/lib/sensor.hpp does not check if type is power. Because "/xyz/openbmc_project/sensors/power" is a path in both the power node and the sensor node ( as defined in lines 62 and 64 ) of bmcweb/redfish-core/lib/sensors.hpp, /xyz/openbmc_project/sensors/power satisfies the if condition if (sensorsAsyncResp->chassisSubNode == sensors::node::sensors) on line 942 and never reaches else if (sensorType == "power") on line 996. Therefore my PowerConsumedWatts is not displayed.
Describe the bug bmcweb/redfish-core/lib/sensor.hpp does not check if type is power. Because "/xyz/openbmc_project/sensors/power" is a path in both the power node and the sensor node ( as defined in lines 62 and 64 ) of bmcweb/redfish-core/lib/sensors.hpp, /xyz/openbmc_project/sensors/power satisfies the if condition
if (sensorsAsyncResp->chassisSubNode == sensors::node::sensors)
on line 942 and never reacheselse if (sensorType == "power")
on line 996. Therefore my PowerConsumedWatts is not displayed.