mirror of
https://github.com/home-assistant/core.git
synced 2025-08-11 00:25:12 +02:00
Improve Risco exception logging (#115232)
This commit is contained in:
@@ -101,7 +101,7 @@ async def _async_setup_local_entry(hass: HomeAssistant, entry: ConfigEntry) -> b
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
async def _error(error: Exception) -> None:
|
async def _error(error: Exception) -> None:
|
||||||
_LOGGER.error("Error in Risco library: %s", error)
|
_LOGGER.error("Error in Risco library", exc_info=error)
|
||||||
|
|
||||||
entry.async_on_unload(risco.add_error_handler(_error))
|
entry.async_on_unload(risco.add_error_handler(_error))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user