diff --git a/hassio/utils/gdbus.py b/hassio/utils/gdbus.py index 9ad1e89da..cedae51a4 100644 --- a/hassio/utils/gdbus.py +++ b/hassio/utils/gdbus.py @@ -123,17 +123,17 @@ class DBus: *command, stdin=asyncio.subprocess.DEVNULL, stdout=asyncio.subprocess.PIPE, - stderr=asyncio.subprocess.DEVNULL + stderr=asyncio.subprocess.PIPE ) - data, _ = await proc.communicate() + data, error = await proc.communicate() except OSError as err: _LOGGER.error("DBus fatal error: %s", err) raise DBusFatalError() from None # Success? if proc.returncode != 0: - _LOGGER.error("DBus return error: %s", data) + _LOGGER.error("DBus return error: %s", error) raise DBusFatalError() # End