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>
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 @@
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)