Improve Risco exception logging (#115232)

This commit is contained in:
On Freund
2024-04-11 00:26:15 +03:00
committed by GitHub
parent 220801bf1c
commit 6394e25f75

View File

@@ -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))