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

Public Member Functions

dict[str, Any] as_dict (self)
 
dict[str, Any] as_extended_dict (self)
 
dict[str, Any] as_short_dict (self)
 

Detailed Description

Base container for a script or automation trace.

Definition at line 25 of file models.py.

Member Function Documentation

◆ as_dict()

dict[str, Any] homeassistant.components.trace.models.BaseTrace.as_dict (   self)
Return an dictionary version of this ActionTrace for saving.

Definition at line 32 of file models.py.

◆ as_extended_dict()

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

Reimplemented in homeassistant.components.trace.models.RestoredTrace, and homeassistant.components.trace.models.ActionTrace.

Definition at line 40 of file models.py.

◆ as_short_dict()

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

Reimplemented in homeassistant.components.trace.models.RestoredTrace, and homeassistant.components.trace.models.ActionTrace.

Definition at line 44 of file models.py.


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