diff options
author | Adriana Kobylak <anoo@us.ibm.com> | 2018-08-08 11:28:22 -0500 |
---|---|---|
committer | Adriana Kobylak <anoo@us.ibm.com> | 2018-08-08 13:37:53 -0500 |
commit | b6d977ae81c02f9511eb3b99427a79482657d33f (patch) | |
tree | b7ac105235b96979dd5f3f3b74beb7c95282af00 | |
parent | c8818021bc50f95f34b21755efca3b9232cf7e9b (diff) | |
download | pyphosphor-b6d977ae81c02f9511eb3b99427a79482657d33f.tar.gz pyphosphor-b6d977ae81c02f9511eb3b99427a79482657d33f.zip |
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>
-rw-r--r-- | obmc/sensors.py | 12 |
1 files changed, 0 insertions, 12 deletions
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 @@ class BootCountSensor(VirtualSensor): 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) |