summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>2017-12-05 23:38:41 -0600
committerDhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>2017-12-05 23:40:36 -0600
commit5c5479b0a7c0a0370ccab2b8d53075d90ae431b0 (patch)
treeb4210913ba6a8caf4eb4cc6afe949542c2d36659
parent7c08c35781b5da36d9195c942745c19fc297df68 (diff)
downloadpyphosphor-5c5479b0a7c0a0370ccab2b8d53075d90ae431b0.tar.gz
pyphosphor-5c5479b0a7c0a0370ccab2b8d53075d90ae431b0.zip
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>
-rw-r--r--obmc/sensors.py9
1 files changed, 1 insertions, 8 deletions
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 OperatingSystemStatusSensor(VirtualSensor):
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):
OpenPOWER on IntegriCloud