Public Attributes | |
| hass | |
Public Attributes inherited from homeassistant.helpers.entity.Entity | |
| device_entry | |
| entity_id | |
| hass | |
| parallel_updates | |
| platform | |
| registry_entry | |
Static Public Attributes | |
| None | |
Static Public Attributes inherited from homeassistant.helpers.entity.Entity | |
| bool | |
| EntityPlatform | |
| HomeAssistant | |
| None | |
| StateInfo | |
| StateType | |
| str | |
Private Member Functions | |
| None | _render_templates (self, dict[str, Any] variables) |
| None | _set_unique_id (self, str|None unique_id) |
Private Attributes | |
| _attr_device_class | |
| _config | |
| _parse_result | |
| _rendered | |
| _static_rendered | |
| _unique_id | |
Template Base entity based on trigger data.
Definition at line 77 of file trigger_template_entity.py.
| None homeassistant.helpers.trigger_template_entity.TriggerBaseEntity.__init__ | ( | self, | |
| HomeAssistant | hass, | ||
| ConfigType | config | ||
| ) |
Initialize the entity.
Reimplemented in homeassistant.helpers.trigger_template_entity.ManualTriggerSensorEntity, and homeassistant.helpers.trigger_template_entity.ManualTriggerEntity.
Definition at line 85 of file trigger_template_entity.py.
|
private |
Render templates.
Definition at line 179 of file trigger_template_entity.py.
|
private |
Set unique id.
Definition at line 160 of file trigger_template_entity.py.
| bool homeassistant.helpers.trigger_template_entity.TriggerBaseEntity.available | ( | self | ) |
Return availability of the entity.
Reimplemented from homeassistant.helpers.entity.Entity.
Reimplemented in homeassistant.components.scrape.sensor.ScrapeSensor, homeassistant.components.rest.sensor.RestSensor, and homeassistant.components.rest.binary_sensor.RestBinarySensor.
Definition at line 146 of file trigger_template_entity.py.
Return entity picture.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 141 of file trigger_template_entity.py.
| dict[str, Any] | None homeassistant.helpers.trigger_template_entity.TriggerBaseEntity.extra_state_attributes | ( | self | ) |
Return extra attributes.
Reimplemented from homeassistant.helpers.entity.Entity.
Reimplemented in homeassistant.components.sql.sensor.SQLSensor, homeassistant.components.rest.sensor.RestSensor, and homeassistant.components.command_line.sensor.CommandSensor.
Definition at line 156 of file trigger_template_entity.py.
Return icon.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 136 of file trigger_template_entity.py.
Name of the entity.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 126 of file trigger_template_entity.py.
| None homeassistant.helpers.trigger_template_entity.TriggerBaseEntity.restore_attributes | ( | self, | |
| State | last_state | ||
| ) |
Restore attributes.
Definition at line 164 of file trigger_template_entity.py.
Return unique ID of the entity.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 131 of file trigger_template_entity.py.
|
private |
Definition at line 123 of file trigger_template_entity.py.
|
private |
Definition at line 95 of file trigger_template_entity.py.
|
private |
Definition at line 122 of file trigger_template_entity.py.
|
private |
Definition at line 121 of file trigger_template_entity.py.
|
private |
Definition at line 97 of file trigger_template_entity.py.
|
private |
Definition at line 162 of file trigger_template_entity.py.
| homeassistant.helpers.trigger_template_entity.TriggerBaseEntity.hass |
Definition at line 91 of file trigger_template_entity.py.
|
static |
Definition at line 81 of file trigger_template_entity.py.