Simplify Bang & Olufsen media_image_url property (#120951)
Simplify media_image_url property
This commit is contained in:
parent
b5367e5994
commit
c2dc9e9b67
1 changed files with 1 additions and 3 deletions
|
@ -398,9 +398,7 @@ class BangOlufsenMediaPlayer(BangOlufsenEntity, MediaPlayerEntity):
|
|||
@property
|
||||
def media_image_url(self) -> str | None:
|
||||
"""Return URL of the currently playing music."""
|
||||
if self._media_image:
|
||||
return self._media_image.url
|
||||
return None
|
||||
return self._media_image.url
|
||||
|
||||
@property
|
||||
def media_image_remotely_accessible(self) -> bool:
|
||||
|
|
Loading…
Add table
Reference in a new issue