diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-07-01 00:23:06 -0400 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-07-01 00:23:06 -0400 |
commit | 10ad8c33756cef4c9a2e9447402526a93ccc71ee (patch) | |
tree | b3cbc12e7d867b0dd8cca02f905c2a42ddd60293 | |
parent | 4f91484fc41763281e842e0f2972ee453cc880d8 (diff) | |
download | pyphosphor-10ad8c33756cef4c9a2e9447402526a93ccc71ee.tar.gz pyphosphor-10ad8c33756cef4c9a2e9447402526a93ccc71ee.zip |
libsensors: pep8 fixes
Change-Id: If2608216a919be9b929ac2f99ad29ba2b789fa98
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
-rw-r--r-- | obmc/sensors.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/obmc/sensors.py b/obmc/sensors.py index c0aa0fe..2153371 100644 --- a/obmc/sensors.py +++ b/obmc/sensors.py @@ -92,7 +92,7 @@ class BootCountSensor(VirtualSensor): SensorValue.IFACE_NAME, in_signature='v', out_signature='') def setValue(self, value): print "Setting boot count to " + str(value) - SensorValue.setValue(self,value) + SensorValue.setValue(self, value) class OperatingSystemStatusSensor(VirtualSensor): @@ -106,10 +106,11 @@ class OperatingSystemStatusSensor(VirtualSensor): if (state == "HOST_POWERED_OFF"): self.setValue("Off") + class PowerSupplyRedundancySensor(VirtualSensor): def __init__(self, bus, name): VirtualSensor.__init__(self, bus, name) - super(PowerSupplyRedundancySensor,self).setValue("Disabled") + super(PowerSupplyRedundancySensor, self).setValue("Disabled") ## override setValue method @dbus.service.method( @@ -117,10 +118,11 @@ class PowerSupplyRedundancySensor(VirtualSensor): def setValue(self, value): print "Setting Power Supply Redundancy is not allowed" + class PowerSupplyDeratingSensor(VirtualSensor): def __init__(self, bus, name): VirtualSensor.__init__(self, bus, name) - super(PowerSupplyDeratingSensor,self).setValue(10) + super(PowerSupplyDeratingSensor, self).setValue(10) ## override setValue method @dbus.service.method( @@ -128,6 +130,7 @@ 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) @@ -137,4 +140,4 @@ class TurboAllowedSensor(VirtualSensor): @dbus.service.method( SensorValue.IFACE_NAME, in_signature='b', out_signature='') def setValue(self, value): - super(TurboAllowedSensor,self).setValue(value) + super(TurboAllowedSensor, self).setValue(value) |