mirror of
https://github.com/home-assistant/core.git
synced 2025-12-27 14:31:13 +00:00
Ease understanding of integration failures (#134475)
Co-authored-by: Shay Levy <levyshay1@gmail.com> Co-authored-by: David Bonnes <zxdavb@bonnes.me>
This commit is contained in:
@@ -425,8 +425,8 @@ async def _async_setup_component(
|
||||
)
|
||||
return False
|
||||
# pylint: disable-next=broad-except
|
||||
except (asyncio.CancelledError, SystemExit, Exception):
|
||||
_LOGGER.exception("Error during setup of component %s", domain)
|
||||
except (asyncio.CancelledError, SystemExit, Exception) as exc:
|
||||
_LOGGER.exception("Error during setup of component %s: %s", domain, exc) # noqa: TRY401
|
||||
async_notify_setup_error(hass, domain, integration.documentation)
|
||||
return False
|
||||
finally:
|
||||
|
||||
Reference in New Issue
Block a user