diff --git a/homeassistant/helpers/trace.py b/homeassistant/helpers/trace.py index 33fe76c9eab..e25cf814b2a 100644 --- a/homeassistant/helpers/trace.py +++ b/homeassistant/helpers/trace.py @@ -92,7 +92,7 @@ trace_path_stack_cv: ContextVar[list[str] | None] = ContextVar( # Copy of last variables variables_cv: ContextVar[Any | None] = ContextVar("variables_cv", default=None) # (domain, item_id) + Run ID -trace_id_cv: ContextVar[tuple[str, str] | None] = ContextVar( +trace_id_cv: ContextVar[tuple[tuple[str, str], str] | None] = ContextVar( "trace_id_cv", default=None ) # Reason for stopped script execution @@ -101,12 +101,12 @@ script_execution_cv: ContextVar[StopReason | None] = ContextVar( ) -def trace_id_set(trace_id: tuple[str, str]) -> None: +def trace_id_set(trace_id: tuple[tuple[str, str], str]) -> None: """Set id of the current trace.""" trace_id_cv.set(trace_id) -def trace_id_get() -> tuple[str, str] | None: +def trace_id_get() -> tuple[tuple[str, str], str] | None: """Get id if the current trace.""" return trace_id_cv.get() diff --git a/mypy.ini b/mypy.ini index 1a0e6507eb6..e138db3fbd8 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1568,9 +1568,6 @@ ignore_errors = true [mypy-homeassistant.components.tplink.*] ignore_errors = true -[mypy-homeassistant.components.trace.*] -ignore_errors = true - [mypy-homeassistant.components.tradfri.*] ignore_errors = true diff --git a/script/hassfest/mypy_config.py b/script/hassfest/mypy_config.py index fef76e6d1bf..9a444f801bd 100644 --- a/script/hassfest/mypy_config.py +++ b/script/hassfest/mypy_config.py @@ -203,7 +203,6 @@ IGNORED_MODULES: Final[list[str]] = [ "homeassistant.components.todoist.*", "homeassistant.components.toon.*", "homeassistant.components.tplink.*", - "homeassistant.components.trace.*", "homeassistant.components.tradfri.*", "homeassistant.components.tuya.*", "homeassistant.components.unifi.*",