Home Assistant Unofficial Reference 2024.12.1
homeassistant.helpers.template.StateTranslated Class Reference

Public Member Functions

str|None __call__ (self, str entity_id)
 
None __init__ (self, HomeAssistant hass)
 
str __repr__ (self)
 

Private Attributes

 _hass
 

Detailed Description

Class to represent a translated state in a template.

Definition at line 949 of file template.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.helpers.template.StateTranslated.__init__ (   self,
HomeAssistant  hass 
)
Initialize all states.

Definition at line 952 of file template.py.

Member Function Documentation

◆ __call__()

str | None homeassistant.helpers.template.StateTranslated.__call__ (   self,
str  entity_id 
)
Retrieve translated state if available.

Definition at line 956 of file template.py.

◆ __repr__()

str homeassistant.helpers.template.StateTranslated.__repr__ (   self)
Representation of Translated state.

Definition at line 974 of file template.py.

Member Data Documentation

◆ _hass

homeassistant.helpers.template.StateTranslated._hass
private

Definition at line 954 of file template.py.


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