Functions | |
| def | _attach_trigger (HomeAssistant hass, ConfigType config, TriggerActionType action, event_type, TriggerInfo trigger_info) |
| CALLBACK_TYPE | async_attach_trigger (HomeAssistant hass, ConfigType config, TriggerActionType action, TriggerInfo trigger_info) |
| list[dict[str, str]] | async_get_triggers (HomeAssistant hass, str device_id) |
Variables | |
| TRIGGER_SCHEMA | |
| dictionary | TRIGGER_TYPES = {"turn_on", "turn_off"} |
Provides device automations for Kodi.
|
private |
Definition at line 66 of file device_trigger.py.
| CALLBACK_TYPE homeassistant.components.kodi.device_trigger.async_attach_trigger | ( | HomeAssistant | hass, |
| ConfigType | config, | ||
| TriggerActionType | action, | ||
| TriggerInfo | trigger_info | ||
| ) |
Attach a trigger.
Definition at line 97 of file device_trigger.py.
| list[dict[str, str]] homeassistant.components.kodi.device_trigger.async_get_triggers | ( | HomeAssistant | hass, |
| str | device_id | ||
| ) |
List device triggers for Kodi devices.
Definition at line 33 of file device_trigger.py.
| homeassistant.components.kodi.device_trigger.TRIGGER_SCHEMA |
Definition at line 25 of file device_trigger.py.
| dictionary homeassistant.components.kodi.device_trigger.TRIGGER_TYPES = {"turn_on", "turn_off"} |
Definition at line 23 of file device_trigger.py.