Sensor.Value: add path constants
Add path constants that allow code to avoid hard-coding strings.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I9e93017572933ffd920dd13c301867b33cbb0203
diff --git a/yaml/xyz/openbmc_project/Sensor/Value.interface.yaml b/yaml/xyz/openbmc_project/Sensor/Value.interface.yaml
index 360b888..61db8ec 100644
--- a/yaml/xyz/openbmc_project/Sensor/Value.interface.yaml
+++ b/yaml/xyz/openbmc_project/Sensor/Value.interface.yaml
@@ -105,3 +105,29 @@
- monitored_by
required_endpoint_interfaces:
- xyz.openbmc_project.Inventory.Item.Bmc
+
+paths:
+ - namespace: /xyz/openbmc_project/sensors
+ segments:
+ - name: Airflow
+ value: airflow
+ - name: Altitude
+ value: altitude
+ - name: Current
+ value: current
+ - name: Energy
+ value: energy
+ - name: FanTach
+ value: fan_tach
+ - name: Humidity
+ value: humidity
+ - name: Power
+ value: power
+ - name: Pressure
+ value: pressure
+ - name: Temperature
+ value: temperature
+ - name: Utilization
+ value: utilization
+ - name: Voltage
+ value: voltage