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

Classes

class  LgTVDevice
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

string CONF_ON_ACTION = "turn_on_action"
 
string DEFAULT_NAME = "LG TV Remote"
 
tuple SUPPORT_LGTV
 

Detailed Description

Support for LG TV running on NetCast 3 or 4.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.lg_netcast.media_player.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up a LG Netcast Media Player from a config_entry.

Definition at line 47 of file media_player.py.

Variable Documentation

◆ CONF_ON_ACTION

string homeassistant.components.lg_netcast.media_player.CONF_ON_ACTION = "turn_on_action"

Definition at line 30 of file media_player.py.

◆ DEFAULT_NAME

string homeassistant.components.lg_netcast.media_player.DEFAULT_NAME = "LG TV Remote"

Definition at line 28 of file media_player.py.

◆ SUPPORT_LGTV

tuple homeassistant.components.lg_netcast.media_player.SUPPORT_LGTV
Initial value:
1 = (
2  MediaPlayerEntityFeature.PAUSE
3  | MediaPlayerEntityFeature.VOLUME_STEP
4  | MediaPlayerEntityFeature.VOLUME_SET
5  | MediaPlayerEntityFeature.VOLUME_MUTE
6  | MediaPlayerEntityFeature.PREVIOUS_TRACK
7  | MediaPlayerEntityFeature.NEXT_TRACK
8  | MediaPlayerEntityFeature.TURN_OFF
9  | MediaPlayerEntityFeature.SELECT_SOURCE
10  | MediaPlayerEntityFeature.PLAY
11  | MediaPlayerEntityFeature.PLAY_MEDIA
12  | MediaPlayerEntityFeature.STOP
13 )

Definition at line 32 of file media_player.py.