Make PowerSupplyRedundancy writeable.
Power Supply redundancy is read only, based on the
requirement for customers to set it, enabling set value
on this sensor.
Change-Id: I1f2d5e892c0d729fe3f541a2d8c981b4bd678d60
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
diff --git a/obmc/sensors.py b/obmc/sensors.py
index 5700922..fba7a91 100644
--- a/obmc/sensors.py
+++ b/obmc/sensors.py
@@ -110,14 +110,7 @@
class PowerSupplyRedundancySensor(VirtualSensor):
def __init__(self, bus, name):
VirtualSensor.__init__(self, bus, name)
- super(PowerSupplyRedundancySensor, self).setValue("Enabled")
-
- ## override setValue method
- @dbus.service.method(
- SensorValue.IFACE_NAME, in_signature='v', out_signature='')
- def setValue(self, value):
- print "Setting Power Supply Redundancy is not allowed"
-
+ self.setValue("Enabled")
class PowerSupplyDeratingSensor(VirtualSensor):
def __init__(self, bus, name):