Update __init__.py

This commit is contained in:
Pascal Vizeli 2018-04-23 08:57:39 +02:00 committed by GitHub
parent ccd48b63a2
commit a4ba4c80e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()