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

Classes

class  LinkPlayMediaPlayerEntity
 

Functions

None async_setup_entry (HomeAssistant hass, LinkPlayConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string ATTR_PRESET_NUMBER = "preset_number"
 
 MediaPlayerEntityFeature
 
string SERVICE_PLAY_PRESET = "play_preset"
 
 SERVICE_PLAY_PRESET_SCHEMA
 

Detailed Description

Support for LinkPlay media players.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.linkplay.media_player.async_setup_entry ( HomeAssistant  hass,
LinkPlayConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up a media player from a config entry.

Definition at line 129 of file media_player.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 40 of file media_player.py.

◆ ATTR_PRESET_NUMBER

string homeassistant.components.linkplay.media_player.ATTR_PRESET_NUMBER = "preset_number"

Definition at line 120 of file media_player.py.

◆ MediaPlayerEntityFeature

homeassistant.components.linkplay.media_player.MediaPlayerEntityFeature

Definition at line 99 of file media_player.py.

◆ SERVICE_PLAY_PRESET

string homeassistant.components.linkplay.media_player.SERVICE_PLAY_PRESET = "play_preset"

Definition at line 119 of file media_player.py.

◆ SERVICE_PLAY_PRESET_SCHEMA

homeassistant.components.linkplay.media_player.SERVICE_PLAY_PRESET_SCHEMA
Initial value:
1 = cv.make_entity_service_schema(
2  {
3  vol.Required(ATTR_PRESET_NUMBER): cv.positive_int,
4  }
5 )

Definition at line 122 of file media_player.py.