mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-10-07 02:39:32 +00:00
19 lines
434 B
Python
19 lines
434 B
Python
"""Interface class for dbus wrappers."""
|
|
|
|
|
|
class DBusInterface:
|
|
"""Handle DBus interface for hostname/system."""
|
|
|
|
def __init__(self):
|
|
"""Initialize systemd."""
|
|
self.dbus = None
|
|
|
|
@property
|
|
def is_connected(self):
|
|
"""Return True, if they is connected to dbus."""
|
|
return self.dbus is not None
|
|
|
|
async def connect(self):
|
|
"""Connect do bus."""
|
|
raise NotImplementedError()
|