Deprecate Openbmc.py
The pyphosphor package provides equivalent function
so use that and drop the duplicated code.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/bin/hwmon.py b/bin/hwmon.py
index 1209d46..7bd39b0 100755
--- a/bin/hwmon.py
+++ b/bin/hwmon.py
@@ -7,8 +7,8 @@
import dbus
import dbus.service
import dbus.mainloop.glib
-import Openbmc
import re
+from obmc.dbuslib.bindings import get_dbus
from Sensors import SensorValue as SensorValue
from Sensors import HwmonSensor as HwmonSensor
@@ -172,7 +172,7 @@
if __name__ == '__main__':
dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
- bus = Openbmc.getDBus()
+ bus = get_dbus()
root_sensor = Hwmons(bus)
mainloop = gobject.MainLoop()