mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 10:29:27 +00:00
Log threading exceptions properly (#34789)
This commit is contained in:
@@ -71,6 +71,7 @@ from homeassistant.exceptions import (
|
||||
from homeassistant.util import location
|
||||
from homeassistant.util.async_ import fire_coroutine_threadsafe, run_callback_threadsafe
|
||||
import homeassistant.util.dt as dt_util
|
||||
from homeassistant.util.thread import fix_threading_exception_logging
|
||||
from homeassistant.util.unit_system import IMPERIAL_SYSTEM, METRIC_SYSTEM, UnitSystem
|
||||
|
||||
# Typing imports that create a circular dependency
|
||||
@@ -80,6 +81,7 @@ if TYPE_CHECKING:
|
||||
|
||||
|
||||
block_async_io.enable()
|
||||
fix_threading_exception_logging()
|
||||
|
||||
# pylint: disable=invalid-name
|
||||
T = TypeVar("T")
|
||||
|
||||
Reference in New Issue
Block a user