Replace None constant [ps4] (#86541)

This commit is contained in:
Marc Mueller 2023-01-24 16:33:15 +01:00 committed by GitHub
parent 0530f61373
commit f8c0e80ef7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,6 @@ _LOGGER = logging.getLogger(__name__)
ICON = "mdi:sony-playstation"
MEDIA_IMAGE_DEFAULT = None
DEFAULT_RETRIES = 2
@ -374,13 +373,13 @@ class PS4Device(MediaPlayerEntity):
f"/api/media_player_proxy/{self.entity_id}?"
f"token={self.access_token}&cache={image_hash}"
)
return MEDIA_IMAGE_DEFAULT
return None
@property
def media_image_url(self):
"""Image url of current playing media."""
if self.media_content_id is None:
return MEDIA_IMAGE_DEFAULT
return None
return self._media_image
async def async_turn_off(self) -> None: