mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
parent
68651be2cc
commit
055382c84c
@ -67,7 +67,7 @@ class CastProtocol(Protocol):
|
|||||||
"""Define the format of cast platforms."""
|
"""Define the format of cast platforms."""
|
||||||
|
|
||||||
async def async_get_media_browser_root_object(
|
async def async_get_media_browser_root_object(
|
||||||
self, cast_type: str
|
self, hass: HomeAssistant, cast_type: str
|
||||||
) -> list[BrowseMedia]:
|
) -> list[BrowseMedia]:
|
||||||
"""Create a list of root objects for media browsing."""
|
"""Create a list of root objects for media browsing."""
|
||||||
|
|
||||||
|
@ -463,7 +463,7 @@ class CastDevice(MediaPlayerEntity):
|
|||||||
for platform in self.hass.data[CAST_DOMAIN].values():
|
for platform in self.hass.data[CAST_DOMAIN].values():
|
||||||
children.extend(
|
children.extend(
|
||||||
await platform.async_get_media_browser_root_object(
|
await platform.async_get_media_browser_root_object(
|
||||||
self._chromecast.cast_type
|
self.hass, self._chromecast.cast_type
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -14,7 +14,9 @@ from .const import PLEX_URI_SCHEME
|
|||||||
from .services import lookup_plex_media
|
from .services import lookup_plex_media
|
||||||
|
|
||||||
|
|
||||||
async def async_get_media_browser_root_object(cast_type: str) -> list[BrowseMedia]:
|
async def async_get_media_browser_root_object(
|
||||||
|
hass: HomeAssistant, cast_type: str
|
||||||
|
) -> list[BrowseMedia]:
|
||||||
"""Create a root object for media browsing."""
|
"""Create a root object for media browsing."""
|
||||||
return [
|
return [
|
||||||
BrowseMedia(
|
BrowseMedia(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user