diff options
author | Adriana Kobylak <anoo@us.ibm.com> | 2018-08-08 14:19:19 -0500 |
---|---|---|
committer | Adriana Kobylak <anoo@us.ibm.com> | 2018-08-08 14:50:09 -0500 |
commit | 18d6cdc17e30e9a5d6c6ed45467a27f5a12af210 (patch) | |
tree | f118b9b1f00bef0c46eddaa13254e55870510d00 | |
parent | b6d977ae81c02f9511eb3b99427a79482657d33f (diff) | |
download | pyphosphor-18d6cdc17e30e9a5d6c6ed45467a27f5a12af210.tar.gz pyphosphor-18d6cdc17e30e9a5d6c6ed45467a27f5a12af210.zip |
sensors: Remove BootCountSensor
The BootCountSensor has moved from the
/org/openbmc/sensors path to /xyz/openbmc_project/state/host0.
Remove it as it's deprecated.
Tested: Verified that the "AttemptsLeft" host property where
the BootSensor value now resides had the default value of 3
and was decremented when the Host didn't boot. Then on a
successful boot this value was set back to 3.
Change-Id: I87e2707abe7b052d4363bc583233780112200e4f
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
-rw-r--r-- | obmc/sensors.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/obmc/sensors.py b/obmc/sensors.py index 256edd8..2fac220 100644 --- a/obmc/sensors.py +++ b/obmc/sensors.py @@ -50,21 +50,6 @@ class VirtualSensor(SensorValue): CONTROL_IFACE = 'org.openbmc.Control' -class BootCountSensor(VirtualSensor): - def __init__(self, bus, name): - VirtualSensor.__init__(self, bus, name) - # Default boot count is 2. Add 1 onto this to allow for an - # SBE side switch boot attempt - self.setValue(3) - - # override setValue method for debug purposes - @dbus.service.method( - SensorValue.IFACE_NAME, in_signature='v', out_signature='') - def setValue(self, value): - print("Setting boot count to " + str(value)) - SensorValue.setValue(self, value) - - class PowerSupplyRedundancySensor(VirtualSensor): def __init__(self, bus, name): VirtualSensor.__init__(self, bus, name) |