Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.trace.models.ActionTrace Class Reference
Inheritance diagram for homeassistant.components.trace.models.ActionTrace:
[legend]
Collaboration diagram for homeassistant.components.trace.models.ActionTrace:
[legend]

Public Member Functions

None __init__ (self, str|None item_id, dict[str, Any]|None config, dict[str, Any]|None blueprint_inputs, Context context)
 
dict[str, Any] as_extended_dict (self)
 
dict[str, Any] as_short_dict (self)
 
None finished (self)
 
None set_error (self, Exception ex)
 
None set_trace (self, dict[str, deque[TraceElement]]|None trace)
 
- Public Member Functions inherited from homeassistant.components.trace.models.BaseTrace
dict[str, Any] as_dict (self)
 

Public Attributes

 key
 

Static Public Attributes

 None
 

Private Attributes

 _blueprint_inputs
 
 _config
 
 _dict
 
 _error
 
 _script_execution
 
 _short_dict
 
 _state
 
 _timestamp_finish
 
 _trace
 

Detailed Description

Base container for a script or automation trace.

Definition at line 48 of file models.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.trace.models.ActionTrace.__init__ (   self,
str | None  item_id,
dict[str, Any] | None  config,
dict[str, Any] | None  blueprint_inputs,
Context  context 
)
Container for script trace.

Definition at line 53 of file models.py.

Member Function Documentation

◆ as_extended_dict()

dict[str, Any] homeassistant.components.trace.models.ActionTrace.as_extended_dict (   self)
Return an extended dictionary version of this ActionTrace.

Reimplemented from homeassistant.components.trace.models.BaseTrace.

Definition at line 92 of file models.py.

◆ as_short_dict()

dict[str, Any] homeassistant.components.trace.models.ActionTrace.as_short_dict (   self)
Return a brief dictionary version of this ActionTrace.

Reimplemented from homeassistant.components.trace.models.BaseTrace.

Definition at line 118 of file models.py.

◆ finished()

None homeassistant.components.trace.models.ActionTrace.finished (   self)
Set finish time.

Definition at line 86 of file models.py.

◆ set_error()

None homeassistant.components.trace.models.ActionTrace.set_error (   self,
Exception  ex 
)
Set error.

Definition at line 82 of file models.py.

◆ set_trace()

None homeassistant.components.trace.models.ActionTrace.set_trace (   self,
dict[str, deque[TraceElement]] | None  trace 
)
Set action trace.

Definition at line 78 of file models.py.

Member Data Documentation

◆ _blueprint_inputs

homeassistant.components.trace.models.ActionTrace._blueprint_inputs
private

Definition at line 63 of file models.py.

◆ _config

homeassistant.components.trace.models.ActionTrace._config
private

Definition at line 62 of file models.py.

◆ _dict

homeassistant.components.trace.models.ActionTrace._dict
private

Definition at line 115 of file models.py.

◆ _error

homeassistant.components.trace.models.ActionTrace._error
private

Definition at line 84 of file models.py.

◆ _script_execution

homeassistant.components.trace.models.ActionTrace._script_execution
private

Definition at line 90 of file models.py.

◆ _short_dict

homeassistant.components.trace.models.ActionTrace._short_dict
private

Definition at line 146 of file models.py.

◆ _state

homeassistant.components.trace.models.ActionTrace._state
private

Definition at line 89 of file models.py.

◆ _timestamp_finish

homeassistant.components.trace.models.ActionTrace._timestamp_finish
private

Definition at line 88 of file models.py.

◆ _trace

homeassistant.components.trace.models.ActionTrace._trace
private

Definition at line 80 of file models.py.

◆ key

homeassistant.components.trace.models.ActionTrace.key

Definition at line 71 of file models.py.

◆ None

homeassistant.components.trace.models.ActionTrace.None
static
Base container for a script or automation trace.

Definition at line 51 of file models.py.


The documentation for this class was generated from the following file: