From a4ba4c80e860684e1815aabbd1a120b58024274a Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Mon, 23 Apr 2018 08:57:39 +0200 Subject: [PATCH] Update __init__.py --- hassio/dbus/__init__.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/hassio/dbus/__init__.py b/hassio/dbus/__init__.py index 202155138..cc20e3f83 100644 --- a/hassio/dbus/__init__.py +++ b/hassio/dbus/__init__.py @@ -1 +1,20 @@ """DBus interface objects.""" + +from .systemd import Systemd + + +class DBusManager(CoreSysAttributes): + """DBus Interface handler.""" + + def __init__(self): + """Initialize DBus Interface.""" + self._systemd = Systemd() + + @property + def systemd(self): + """Return Systemd Interface.""" + return self._systemd + + async def load(self): + """Connect interfaces to dbus.""" + await self.systemd.connect()