sensors: Remove OperatingSystemStatusSensor
The OperatingSystemStatusSensor has moved from the
/org/openbmc/sensors path to /xyz/openbmc_project/state/host0
and its value in the org path is no longer being updated.
Remove this unused sensor class.
Tested: Powered on a Witherspoon to the Host OS.
Change-Id: I9cb50d999e475583fbdcf0443da73fe6b807f7bd
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/obmc/sensors.py b/obmc/sensors.py
index a33d0f2..256edd8 100644
--- a/obmc/sensors.py
+++ b/obmc/sensors.py
@@ -65,18 +65,6 @@
SensorValue.setValue(self, value)
-class OperatingSystemStatusSensor(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")
-
-
class PowerSupplyRedundancySensor(VirtualSensor):
def __init__(self, bus, name):
VirtualSensor.__init__(self, bus, name)