Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.template.trigger_entity Namespace Reference

Classes

class  TriggerEntity
 

Functions

None __init__ (self, HomeAssistant hass, TriggerUpdateCoordinator coordinator, dict config)
 
None _handle_coordinator_update (self)
 
None _process_data (self)
 
None _set_unique_id (self, str|None unique_id)
 
None async_added_to_hass (self)
 

Variables

 _unique_id
 
 disable
 

Detailed Description

Trigger entity.

Function Documentation

◆ __init__()

None homeassistant.components.template.trigger_entity.__init__ (   self,
HomeAssistant  hass,
TriggerUpdateCoordinator  coordinator,
dict  config 
)
Template entity based on trigger data.
Initialize the entity.

Definition at line 18 of file trigger_entity.py.

◆ _handle_coordinator_update()

None homeassistant.components.template.trigger_entity._handle_coordinator_update (   self)
private
Handle updated data from the coordinator.

Definition at line 56 of file trigger_entity.py.

◆ _process_data()

None homeassistant.components.template.trigger_entity._process_data (   self)
private
Process new data.

Definition at line 42 of file trigger_entity.py.

◆ _set_unique_id()

None homeassistant.components.template.trigger_entity._set_unique_id (   self,
str | None  unique_id 
)
private
Set unique id.

Definition at line 34 of file trigger_entity.py.

◆ async_added_to_hass()

None homeassistant.components.template.trigger_entity.async_added_to_hass (   self)
Handle being added to Home Assistant.

Definition at line 28 of file trigger_entity.py.

Variable Documentation

◆ _unique_id

homeassistant.components.template.trigger_entity._unique_id
private

Definition at line 37 of file trigger_entity.py.

◆ disable

homeassistant.components.template.trigger_entity.disable

Definition at line 13 of file trigger_entity.py.