Classes | |
| class | PluggableAction |
| class | PluggableActionsEntry |
| class | TriggerActionType |
| class | TriggerData |
| class | TriggerInfo |
| class | TriggerProtocol |
Functions | |
| TriggerProtocol | _async_get_trigger_platform (HomeAssistant hass, ConfigType config) |
| Callable | _trigger_action_wrapper (HomeAssistant hass, Callable action, ConfigType conf) |
| CALLBACK_TYPE|None | async_initialize_triggers (HomeAssistant hass, list[ConfigType] trigger_config, Callable action, str domain, str name, Callable log_cb, bool home_assistant_start=False, TemplateVarsType variables=None) |
| list[ConfigType] | async_validate_trigger_config (HomeAssistant hass, list[ConfigType] trigger_config) |
Variables | |
| dictionary | _PLATFORM_ALIASES |
Triggers.
|
private |
Definition at line 219 of file trigger.py.
|
private |
Wrap trigger action with extra vars if configured. If action is a coroutine function, a coroutine function will be returned. If action is a callback, a callback will be returned.
Definition at line 252 of file trigger.py.
| CALLBACK_TYPE | None homeassistant.helpers.trigger.async_initialize_triggers | ( | HomeAssistant | hass, |
| list[ConfigType] | trigger_config, | ||
| Callable | action, | ||
| str | domain, | ||
| str | name, | ||
| Callable | log_cb, | ||
| bool | home_assistant_start = False, |
||
| TemplateVarsType | variables = None |
||
| ) |
Initialize triggers.
Definition at line 302 of file trigger.py.
| list[ConfigType] homeassistant.helpers.trigger.async_validate_trigger_config | ( | HomeAssistant | hass, |
| list[ConfigType] | trigger_config | ||
| ) |
Validate triggers.
Definition at line 237 of file trigger.py.
|
private |
Definition at line 38 of file trigger.py.