summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdriana Kobylak <anoo@us.ibm.com>2018-08-07 14:49:11 -0500
committerAdriana Kobylak <anoo@us.ibm.com>2018-08-07 15:34:12 -0500
commitc8818021bc50f95f34b21755efca3b9232cf7e9b (patch)
tree19cc212088ce7a0191999ed2b13be07c7aa1adc0
parent216b518a3cf92f3b74ee2989874da49962c88f41 (diff)
downloadpyphosphor-c8818021bc50f95f34b21755efca3b9232cf7e9b.tar.gz
pyphosphor-c8818021bc50f95f34b21755efca3b9232cf7e9b.zip
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>
-rw-r--r--obmc/sensors.py30
1 files changed, 0 insertions, 30 deletions
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 @@ class VirtualSensor(SensorValue):
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)
OpenPOWER on IntegriCloud