Kodi/Roku: Add brand logos to brand folders at root level (#67251)

pull/67487/head
Paulus Schoutsen 2022-02-25 12:19:56 -08:00
parent d16f0ba32b
commit 241611ff05
2 changed files with 6 additions and 0 deletions

View File

@ -224,6 +224,9 @@ async def library_payload(hass):
)
)
for child in library_info.children:
child.thumbnail = "https://brands.home-assistant.io/_/kodi/logo.png"
with contextlib.suppress(media_source.BrowseError):
item = await media_source.async_browse_media(hass, None)
# If domain is None, it's overview of available sources

View File

@ -135,6 +135,9 @@ async def root_payload(
)
)
for child in children:
child.thumbnail = "https://brands.home-assistant.io/_/roku/logo.png"
try:
browse_item = await media_source.async_browse_media(hass, None)