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

Classes

class  RoonDevice
 

Functions

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

Variables

 _LOGGER = logging.getLogger(__name__)
 
string ATTR_TRANSFER = "transfer_id"
 
dictionary REPEAT_MODE_MAPPING_TO_HA
 
dictionary REPEAT_MODE_MAPPING_TO_ROON
 
string SERVICE_TRANSFER = "transfer"
 

Detailed Description

MediaPlayer platform for Roon integration.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.roon.media_player.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up Roon MediaPlayer from Config Entry.

Definition at line 52 of file media_player.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 35 of file media_player.py.

◆ ATTR_TRANSFER

string homeassistant.components.roon.media_player.ATTR_TRANSFER = "transfer_id"

Definition at line 39 of file media_player.py.

◆ REPEAT_MODE_MAPPING_TO_HA

dictionary homeassistant.components.roon.media_player.REPEAT_MODE_MAPPING_TO_HA
Initial value:
1 = {
2  "loop": RepeatMode.ALL,
3  "disabled": RepeatMode.OFF,
4  "loop_one": RepeatMode.ONE,
5 }

Definition at line 41 of file media_player.py.

◆ REPEAT_MODE_MAPPING_TO_ROON

dictionary homeassistant.components.roon.media_player.REPEAT_MODE_MAPPING_TO_ROON
Initial value:
1 = {
2  value: key for key, value in REPEAT_MODE_MAPPING_TO_HA.items()
3 }

Definition at line 47 of file media_player.py.

◆ SERVICE_TRANSFER

string homeassistant.components.roon.media_player.SERVICE_TRANSFER = "transfer"

Definition at line 37 of file media_player.py.