summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdriana Kobylak <anoo@us.ibm.com>2018-08-20 12:05:29 -0500
committerAdriana Kobylak <anoo@us.ibm.com>2018-08-20 13:58:46 -0500
commitf63e191ca673a0acd7ab5c45272e1acf51bf7183 (patch)
tree8d9bdd19934ad8e112549ccbb8699d200c694056
parent18d6cdc17e30e9a5d6c6ed45467a27f5a12af210 (diff)
downloadpyphosphor-f63e191ca673a0acd7ab5c45272e1acf51bf7183.tar.gz
pyphosphor-f63e191ca673a0acd7ab5c45272e1acf51bf7183.zip
sensors: Remove TurboAllowedSensor
The TurboAllowed sensor is already mapped to /xyz/openbmc_project/control/host0/turbo_allowed (Reference: the phosphor-ipmi-sensor-inventory-mrw-config/config.yaml file). Remove it from the deprecated /org/openbmc/sensors path. Tested: Powered on a Witherspoon to the Host OS without errors. Change-Id: Ic1df697756721305ab00b630e74f33160e24e522 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
-rw-r--r--obmc/sensors.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/obmc/sensors.py b/obmc/sensors.py
index 2fac220..64eadef 100644
--- a/obmc/sensors.py
+++ b/obmc/sensors.py
@@ -107,14 +107,3 @@ class PowerSupplyDeratingSensor(VirtualSensor):
def setValue(self, value):
print("Setting Power Supply Derating is not allowed")
-
-class TurboAllowedSensor(VirtualSensor):
- def __init__(self, bus, name):
- VirtualSensor.__init__(self, bus, name)
- self.setValue(0)
-
- # override setValue method
- @dbus.service.method(
- SensorValue.IFACE_NAME, in_signature='b', out_signature='')
- def setValue(self, value):
- super(TurboAllowedSensor, self).setValue(value)
OpenPOWER on IntegriCloud