This commit is contained in:
Pascal Vizeli 2018-04-25 23:36:44 +02:00
parent 9041eb9e9a
commit 53f42ff934

View File

@ -104,7 +104,7 @@ class DBus:
async def get_properties(self, interface):
"""Read all properties from interface."""
try:
return await self.call_dbus(DBUS_METHOD_GETALL, interface)[0]
return (await self.call_dbus(DBUS_METHOD_GETALL, interface))[0]
except IndexError:
_LOGGER.error("No attributes returned for %s", interface)
raise DBusFatalError from None