Update gdbus.py

This commit is contained in:
Pascal Vizeli 2018-04-20 15:48:36 +02:00 committed by GitHub
parent 43e6ca8f4a
commit 2efa9f9483
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,11 @@ class Dbus(object):
@staticmethod
async def connect(bus_name, object_path):
"""Read object data."""
self = Dbus(bus_name, object_path)
self._init_proxy()
_LOGGER.info("Connect to dbus: %s", bus_name)
return self
async def _init_proxy(self):
"""Read object data."""