mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
Fix for errors on missing preview on LG webos TV (#6755)
* fix for missing image preview on LG webos TV * fix to use largeIcon if it start with http
This commit is contained in:
parent
0c14c66fbc
commit
2d5ab520ef
@ -238,7 +238,10 @@ class LgWebOSDevice(MediaPlayerDevice):
|
||||
def media_image_url(self):
|
||||
"""Image url of current playing media."""
|
||||
if self._current_source_id in self._app_list:
|
||||
return self._app_list[self._current_source_id]['largeIcon']
|
||||
icon = self._app_list[self._current_source_id]['largeIcon']
|
||||
if not icon.startswith('http'):
|
||||
icon = self._app_list[self._current_source_id]['icon']
|
||||
return icon
|
||||
return None
|
||||
|
||||
@property
|
||||
|
Loading…
x
Reference in New Issue
Block a user