mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
parent
68651be2cc
commit
055382c84c
@ -67,7 +67,7 @@ class CastProtocol(Protocol):
|
||||
"""Define the format of cast platforms."""
|
||||
|
||||
async def async_get_media_browser_root_object(
|
||||
self, cast_type: str
|
||||
self, hass: HomeAssistant, cast_type: str
|
||||
) -> list[BrowseMedia]:
|
||||
"""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():
|
||||
children.extend(
|
||||
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
|
||||
|
||||
|
||||
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."""
|
||||
return [
|
||||
BrowseMedia(
|
||||
|
Loading…
x
Reference in New Issue
Block a user