summaryrefslogtreecommitdiffstats
path: root/obmc/sensors.py
diff options
context:
space:
mode:
authorAdriana Kobylak <anoo@us.ibm.com>2018-08-20 15:25:50 -0500
committerAdriana Kobylak <anoo@us.ibm.com>2018-08-21 11:16:42 -0500
commit3856d7d1cb5622ecaa349f7273f8b33b85155a65 (patch)
treef8d3c700295a8f1a95ed3370f389b3d6959f599e /obmc/sensors.py
parent6c22a7656eb1ef51d0391713a953c15bbcdd3526 (diff)
downloadpyphosphor-3856d7d1cb5622ecaa349f7273f8b33b85155a65.tar.gz
pyphosphor-3856d7d1cb5622ecaa349f7273f8b33b85155a65.zip
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>
Diffstat (limited to 'obmc/sensors.py')
-rw-r--r--obmc/sensors.py11
1 files changed, 0 insertions, 11 deletions
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 @@ class VirtualSensor(SensorValue):
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")
-
OpenPOWER on IntegriCloud