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

Functions

def _get_dashboard_info (hass, url_path)
 
BrowseMedia _item_from_info (dict info)
 
BrowseMedia|None async_browse_media (HomeAssistant hass, MediaType|str media_content_type, str media_content_id, str cast_type)
 
list[BrowseMedia] async_get_media_browser_root_object (HomeAssistant hass, str cast_type)
 
bool async_play_media (HomeAssistant hass, str cast_entity_id, Chromecast chromecast, MediaType|str media_type, str media_id)
 

Variables

string DEFAULT_DASHBOARD = "_default_"
 

Detailed Description

Home Assistant Cast platform.

Function Documentation

◆ _get_dashboard_info()

def homeassistant.components.lovelace.cast._get_dashboard_info (   hass,
  url_path 
)
private
Load a dashboard and return info on views.

Definition at line 154 of file cast.py.

◆ _item_from_info()

BrowseMedia homeassistant.components.lovelace.cast._item_from_info ( dict  info)
private
Convert dashboard info to browse item.

Definition at line 198 of file cast.py.

◆ async_browse_media()

BrowseMedia | None homeassistant.components.lovelace.cast.async_browse_media ( HomeAssistant  hass,
MediaType | str  media_content_type,
str  media_content_id,
str  cast_type 
)
Browse media.

Definition at line 51 of file cast.py.

◆ async_get_media_browser_root_object()

list[BrowseMedia] homeassistant.components.lovelace.cast.async_get_media_browser_root_object ( HomeAssistant  hass,
str   cast_type 
)
Create a root object for media browsing.

Definition at line 32 of file cast.py.

◆ async_play_media()

bool homeassistant.components.lovelace.cast.async_play_media ( HomeAssistant  hass,
str  cast_entity_id,
Chromecast  chromecast,
MediaType | str  media_type,
str  media_id 
)
Play media.

Definition at line 117 of file cast.py.

Variable Documentation

◆ DEFAULT_DASHBOARD

string homeassistant.components.lovelace.cast.DEFAULT_DASHBOARD = "_default_"

Definition at line 29 of file cast.py.