bmcweb: Update to Sensor.v1_2_0.Sensor
This is just a string change to update the version so that subsequent
changes can implement RelatedItem from the newer Redfish schema.
Tested: Redfish validator passes
Signed-off-by: Shounak Mitra <shounak@google.com>
Change-Id: I6f3e1260a6aa0186717328c36c5f29210f4f9a4d
diff --git a/redfish-core/lib/sensors.hpp b/redfish-core/lib/sensors.hpp
index e647f0b..489c49d 100644
--- a/redfish-core/lib/sensors.hpp
+++ b/redfish-core/lib/sensors.hpp
@@ -929,7 +929,7 @@
nlohmann::json::json_pointer unit("/Reading");
if (sensorsAsyncResp->chassisSubNode == sensors::node::sensors)
{
- sensorJson["@odata.type"] = "#Sensor.v1_0_0.Sensor";
+ sensorJson["@odata.type"] = "#Sensor.v1_2_0.Sensor";
const std::string& readingType = sensors::toReadingType(sensorType);
if (readingType.empty())