Home Assistant Unofficial Reference 2024.12.1
media_player.py File Reference

Go to the source code of this file.

Classes

class  homeassistant.components.universal.media_player.UniversalMediaPlayer
 

Namespaces

 homeassistant.components.universal.media_player
 

Functions

None homeassistant.components.universal.media_player.async_setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback async_add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

string homeassistant.components.universal.media_player.ATTR_ACTIVE_CHILD = "active_child"
 
 homeassistant.components.universal.media_player.ATTRS_SCHEMA = cv.schema_with_slug_keys(cv.string)
 
 homeassistant.components.universal.media_player.CMD_SCHEMA = cv.schema_with_slug_keys(cv.SERVICE_SCHEMA)
 
string homeassistant.components.universal.media_player.CONF_ACTIVE_CHILD_TEMPLATE = "active_child_template"
 
string homeassistant.components.universal.media_player.CONF_ATTRS = "attributes"
 
string homeassistant.components.universal.media_player.CONF_BROWSE_MEDIA_ENTITY = "browse_media_entity"
 
string homeassistant.components.universal.media_player.CONF_CHILDREN = "children"
 
string homeassistant.components.universal.media_player.CONF_COMMANDS = "commands"
 
 homeassistant.components.universal.media_player.PLATFORM_SCHEMA
 
list homeassistant.components.universal.media_player.STATES_ORDER
 
dictionary homeassistant.components.universal.media_player.STATES_ORDER_IDLE = STATES_ORDER_LOOKUP[MediaPlayerState.IDLE]
 
dictionary homeassistant.components.universal.media_player.STATES_ORDER_LOOKUP = {state: idx for idx, state in enumerate(STATES_ORDER)}