Home Assistant Unofficial Reference
2024.12.1
const.py
Go to the documentation of this file.
1
"""Shared constants for script and automation tracing and debugging."""
2
3
from
__future__
import
annotations
4
5
from
typing
import
TYPE_CHECKING
6
7
from
homeassistant.util.hass_dict
import
HassKey
8
9
if
TYPE_CHECKING:
10
from
homeassistant.helpers.storage
import
Store
11
12
from
.models
import
TraceData
13
14
15
CONF_STORED_TRACES =
"stored_traces"
16
DATA_TRACE: HassKey[TraceData] =
HassKey
(
"trace"
)
17
DATA_TRACE_STORE: HassKey[Store[dict[str, list]]] =
HassKey
(
"trace_store"
)
18
DATA_TRACES_RESTORED: HassKey[bool] =
HassKey
(
"trace_traces_restored"
)
19
DEFAULT_STORED_TRACES = 5
# Stored traces per script or automation
homeassistant.util.hass_dict.HassKey
Definition:
hass_dict.py:9
homeassistant.helpers.storage
Definition:
storage.py:1
homeassistant.util.hass_dict
Definition:
hass_dict.py:1
core
homeassistant
components
trace
const.py
Generated by
1.9.1