From f63e191ca673a0acd7ab5c45272e1acf51bf7183 Mon Sep 17 00:00:00 2001 From: Adriana Kobylak Date: Mon, 20 Aug 2018 12:05:29 -0500 Subject: 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 --- obmc/sensors.py | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'obmc') 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) -- cgit v1.2.1