mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
Replace None
constant [ps4] (#86541)
This commit is contained in:
parent
0530f61373
commit
f8c0e80ef7
@ -41,7 +41,6 @@ _LOGGER = logging.getLogger(__name__)
|
|||||||
|
|
||||||
|
|
||||||
ICON = "mdi:sony-playstation"
|
ICON = "mdi:sony-playstation"
|
||||||
MEDIA_IMAGE_DEFAULT = None
|
|
||||||
|
|
||||||
DEFAULT_RETRIES = 2
|
DEFAULT_RETRIES = 2
|
||||||
|
|
||||||
@ -374,13 +373,13 @@ class PS4Device(MediaPlayerEntity):
|
|||||||
f"/api/media_player_proxy/{self.entity_id}?"
|
f"/api/media_player_proxy/{self.entity_id}?"
|
||||||
f"token={self.access_token}&cache={image_hash}"
|
f"token={self.access_token}&cache={image_hash}"
|
||||||
)
|
)
|
||||||
return MEDIA_IMAGE_DEFAULT
|
return None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def media_image_url(self):
|
def media_image_url(self):
|
||||||
"""Image url of current playing media."""
|
"""Image url of current playing media."""
|
||||||
if self.media_content_id is None:
|
if self.media_content_id is None:
|
||||||
return MEDIA_IMAGE_DEFAULT
|
return None
|
||||||
return self._media_image
|
return self._media_image
|
||||||
|
|
||||||
async def async_turn_off(self) -> None:
|
async def async_turn_off(self) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user