sensors: Remove BootProgressSensor
The boot progress sensor has moved from the
/org/openbmc/sensors path to /xyz/openbmc_project/state/host0.
(Reference: the phosphor-ipmi-sensor-inventory%/config.yaml files
under the openbmc/openbmc repository).
Remove the deprecated sensor class.
Tested: Verified Witherspoon powered on to the Host OS.
Change-Id: I46ae2a2c6b228759bcde77773f451e201bc40732
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/obmc/sensors.py b/obmc/sensors.py
index ffee5d1..a33d0f2 100644
--- a/obmc/sensors.py
+++ b/obmc/sensors.py
@@ -50,36 +50,6 @@
CONTROL_IFACE = 'org.openbmc.Control'
-class BootProgressSensor(VirtualSensor):
- def __init__(self, bus, name):
- VirtualSensor.__init__(self, bus, name)
- self.setValue("Off")
- bus.add_signal_receiver(
- self.SystemStateHandler, signal_name="GotoSystemState")
-
- def SystemStateHandler(self, state):
- if (state == "HOST_POWERED_OFF"):
- self.setValue("Off")
-
- # override setValue method
- @dbus.service.method(
- SensorValue.IFACE_NAME,
- in_signature='v', out_signature='')
- def setValue(self, value):
- SensorValue.setValue(self, value)
- if (value == "FW Progress, Starting OS"):
- self.GotoSystemState("HOST_BOOTED")
- self.BootProgress(value)
-
- @dbus.service.signal(CONTROL_IFACE, signature='s')
- def GotoSystemState(self, state):
- pass
-
- @dbus.service.signal(CONTROL_IFACE, signature='s')
- def BootProgress(self, state):
- pass
-
-
class BootCountSensor(VirtualSensor):
def __init__(self, bus, name):
VirtualSensor.__init__(self, bus, name)