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

Classes

class  CastDevice
 
class  CastMediaPlayerEntity
 
class  DynamicCastGroup
 

Functions

def _async_create_cast_device (HomeAssistant hass, ChromecastInfo info)
 
def _CastDeviceT
 
None async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
tuple APP_IDS_UNRELIABLE_MEDIA_INFO = ("Netflix",)
 
string CAST_SPLASH = "https://www.home-assistant.io/images/cast/splash.png"
 

Detailed Description

Provide functionality to interact with Cast devices on the network.

Function Documentation

◆ _async_create_cast_device()

def homeassistant.components.cast.media_player._async_create_cast_device ( HomeAssistant  hass,
ChromecastInfo  info 
)
private
Create a CastDevice entity or dynamic group from the chromecast object.

Returns None if the cast device has already been added.

Definition at line 112 of file media_player.py.

◆ _CastDeviceT()

def homeassistant.components.cast.media_player._CastDeviceT
private

Definition at line 91 of file media_player.py.

◆ async_setup_entry()

None homeassistant.components.cast.media_player.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up Cast from a config entry.

Definition at line 140 of file media_player.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 82 of file media_player.py.

◆ APP_IDS_UNRELIABLE_MEDIA_INFO

tuple homeassistant.components.cast.media_player.APP_IDS_UNRELIABLE_MEDIA_INFO = ("Netflix",)

Definition at line 84 of file media_player.py.

◆ CAST_SPLASH

string homeassistant.components.cast.media_player.CAST_SPLASH = "https://www.home-assistant.io/images/cast/splash.png"

Definition at line 86 of file media_player.py.