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

Classes

class  LgWebOSMediaPlayerEntity
 

Functions

def _T
 
None async_setup_entry (HomeAssistant hass, ConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 MIN_TIME_BETWEEN_FORCED_SCANS = timedelta(seconds=1)
 
 MIN_TIME_BETWEEN_SCANS = timedelta(seconds=10)
 
 SCAN_INTERVAL = timedelta(seconds=10)
 
tuple SUPPORT_WEBOSTV
 
tuple SUPPORT_WEBOSTV_VOLUME
 

Detailed Description

Support for interface with an LG webOS Smart TV.

Function Documentation

◆ _T()

def homeassistant.components.webostv.media_player._T
private

Definition at line 82 of file media_player.py.

◆ async_setup_entry()

None homeassistant.components.webostv.media_player.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback   async_add_entities 
)
Set up the LG webOS Smart TV platform.

Definition at line 74 of file media_player.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.webostv.media_player._LOGGER = logging.getLogger(__name__)
private

Definition at line 52 of file media_player.py.

◆ MIN_TIME_BETWEEN_FORCED_SCANS

homeassistant.components.webostv.media_player.MIN_TIME_BETWEEN_FORCED_SCANS = timedelta(seconds=1)

Definition at line 70 of file media_player.py.

◆ MIN_TIME_BETWEEN_SCANS

homeassistant.components.webostv.media_player.MIN_TIME_BETWEEN_SCANS = timedelta(seconds=10)

Definition at line 69 of file media_player.py.

◆ SCAN_INTERVAL

homeassistant.components.webostv.media_player.SCAN_INTERVAL = timedelta(seconds=10)

Definition at line 71 of file media_player.py.

◆ SUPPORT_WEBOSTV

tuple homeassistant.components.webostv.media_player.SUPPORT_WEBOSTV
Initial value:
1 = (
2  MediaPlayerEntityFeature.TURN_OFF
3  | MediaPlayerEntityFeature.NEXT_TRACK
4  | MediaPlayerEntityFeature.PAUSE
5  | MediaPlayerEntityFeature.PREVIOUS_TRACK
6  | MediaPlayerEntityFeature.SELECT_SOURCE
7  | MediaPlayerEntityFeature.PLAY_MEDIA
8  | MediaPlayerEntityFeature.PLAY
9  | MediaPlayerEntityFeature.STOP
10 )

Definition at line 54 of file media_player.py.

◆ SUPPORT_WEBOSTV_VOLUME

tuple homeassistant.components.webostv.media_player.SUPPORT_WEBOSTV_VOLUME
Initial value:
1 = (
2  MediaPlayerEntityFeature.VOLUME_MUTE | MediaPlayerEntityFeature.VOLUME_STEP
3 )

Definition at line 65 of file media_player.py.