sensors: Remove PowerSupplyDeratingSensor
The PowerSupplyDerating Sensor is being added to the ipmi
sensor.yaml file since the /org/openbmc/sensors path is
being deprecated. Remove this sensor from the org path.
Tested: Powered on a Witherspoon to the Host OS without
sensor errors.
Change-Id: Ie6c4a0b649c374c323b87092895d319a98d7cede
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/obmc/sensors.py b/obmc/sensors.py
index 49a4797..dba1134 100644
--- a/obmc/sensors.py
+++ b/obmc/sensors.py
@@ -50,14 +50,3 @@
CONTROL_IFACE = 'org.openbmc.Control'
-class PowerSupplyDeratingSensor(VirtualSensor):
- def __init__(self, bus, name):
- VirtualSensor.__init__(self, bus, name)
- super(PowerSupplyDeratingSensor, self).setValue(90)
-
- # override setValue method
- @dbus.service.method(
- SensorValue.IFACE_NAME, in_signature='v', out_signature='')
- def setValue(self, value):
- print("Setting Power Supply Derating is not allowed")
-