Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.lg_netcast.device_trigger Namespace Reference

Functions

CALLBACK_TYPE async_attach_trigger (HomeAssistant hass, ConfigType config, TriggerActionType action, TriggerInfo trigger_info)
 
list[dict[str, Any]] async_get_triggers (HomeAssistant _hass, str device_id)
 
ConfigType async_validate_trigger_config (HomeAssistant hass, ConfigType config)
 

Variables

 TRIGGER_SCHEMA
 
dictionary TRIGGER_TYPES = {TURN_ON_PLATFORM_TYPE}
 

Detailed Description

Provides device triggers for LG Netcast.

Function Documentation

◆ async_attach_trigger()

CALLBACK_TYPE homeassistant.components.lg_netcast.device_trigger.async_attach_trigger ( HomeAssistant  hass,
ConfigType  config,
TriggerActionType  action,
TriggerInfo  trigger_info 
)
Attach a trigger.

Definition at line 69 of file device_trigger.py.

◆ async_get_triggers()

list[dict[str, Any]] homeassistant.components.lg_netcast.device_trigger.async_get_triggers ( HomeAssistant  _hass,
str   device_id 
)
List device triggers for LG Netcast devices.

Definition at line 62 of file device_trigger.py.

◆ async_validate_trigger_config()

ConfigType homeassistant.components.lg_netcast.device_trigger.async_validate_trigger_config ( HomeAssistant  hass,
ConfigType   config 
)
Validate config.

Definition at line 36 of file device_trigger.py.

Variable Documentation

◆ TRIGGER_SCHEMA

homeassistant.components.lg_netcast.device_trigger.TRIGGER_SCHEMA
Initial value:
1 = DEVICE_TRIGGER_BASE_SCHEMA.extend(
2  {
3  vol.Required(CONF_TYPE): vol.In(TRIGGER_TYPES),
4  }
5 )

Definition at line 29 of file device_trigger.py.

◆ TRIGGER_TYPES

dictionary homeassistant.components.lg_netcast.device_trigger.TRIGGER_TYPES = {TURN_ON_PLATFORM_TYPE}

Definition at line 27 of file device_trigger.py.