mirror of
https://github.com/home-assistant/core.git
synced 2025-04-29 11:47:50 +00:00
Kodi/Roku: Add brand logos to brand folders at root level (#67251)
This commit is contained in:
parent
0a6c8f8e6c
commit
22aed088f3
@ -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):
|
with contextlib.suppress(media_source.BrowseError):
|
||||||
item = await media_source.async_browse_media(hass, None)
|
item = await media_source.async_browse_media(hass, None)
|
||||||
# If domain is None, it's overview of available sources
|
# If domain is None, it's overview of available sources
|
||||||
|
@ -135,6 +135,9 @@ async def root_payload(
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
for child in children:
|
||||||
|
child.thumbnail = "https://brands.home-assistant.io/_/roku/logo.png"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
browse_item = await media_source.async_browse_media(hass, None)
|
browse_item = await media_source.async_browse_media(hass, None)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user