|
| None | __init__ (self, *MediaClass|str media_class, str media_content_id, MediaType|str media_content_type, str title, bool can_play, bool can_expand, Sequence[BrowseMedia]|None children=None, MediaClass|str|None children_media_class=None, str|None thumbnail=None, int not_shown=0) |
| |
| str | __repr__ (self) |
| |
| dict[str, Any] | as_dict (self, *bool parent=True) |
| |
| None | calculate_children_class (self) |
| |
Represent a browsable media file.
Definition at line 92 of file browse_media.py.
◆ __init__()
| None homeassistant.components.media_player.browse_media.BrowseMedia.__init__ |
( |
|
self, |
|
|
*MediaClass | str |
media_class, |
|
|
str |
media_content_id, |
|
|
MediaType | str |
media_content_type, |
|
|
str |
title, |
|
|
bool |
can_play, |
|
|
bool |
can_expand, |
|
|
Sequence[BrowseMedia] | None |
children = None, |
|
|
MediaClass | str | None |
children_media_class = None, |
|
|
str | None |
thumbnail = None, |
|
|
int |
not_shown = 0 |
|
) |
| |
◆ __repr__()
| str homeassistant.components.media_player.browse_media.BrowseMedia.__repr__ |
( |
|
self | ) |
|
◆ as_dict()
| dict[str, Any] homeassistant.components.media_player.browse_media.BrowseMedia.as_dict |
( |
|
self, |
|
|
*bool |
parent = True |
|
) |
| |
Convert Media class to browse media dictionary.
Definition at line 121 of file browse_media.py.
◆ calculate_children_class()
| None homeassistant.components.media_player.browse_media.BrowseMedia.calculate_children_class |
( |
|
self | ) |
|
Count the children media classes and calculate the correct class.
Definition at line 151 of file browse_media.py.
◆ can_expand
| homeassistant.components.media_player.browse_media.BrowseMedia.can_expand |
◆ can_play
| homeassistant.components.media_player.browse_media.BrowseMedia.can_play |
◆ children
| homeassistant.components.media_player.browse_media.BrowseMedia.children |
◆ children_media_class
| homeassistant.components.media_player.browse_media.BrowseMedia.children_media_class |
◆ media_class
| homeassistant.components.media_player.browse_media.BrowseMedia.media_class |
◆ media_content_id
| homeassistant.components.media_player.browse_media.BrowseMedia.media_content_id |
◆ media_content_type
| homeassistant.components.media_player.browse_media.BrowseMedia.media_content_type |
◆ not_shown
| homeassistant.components.media_player.browse_media.BrowseMedia.not_shown |
◆ thumbnail
| homeassistant.components.media_player.browse_media.BrowseMedia.thumbnail |
◆ title
| homeassistant.components.media_player.browse_media.BrowseMedia.title |
The documentation for this class was generated from the following file: