Add icon translations to PS4 (#112190)

This commit is contained in:
Joost Lekkerkerker 2024-03-05 08:43:50 +01:00 committed by GitHub
parent 2585b240d3
commit 30a8c1739f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 3 deletions

View File

@ -0,0 +1,12 @@
{
"entity": {
"media_player": {
"media_player": {
"default": "mdi:sony-playstation"
}
}
},
"services": {
"send_command": "mdi:terminal"
}
}

View File

@ -41,8 +41,6 @@ from .const import (
_LOGGER = logging.getLogger(__name__)
ICON = "mdi:sony-playstation"
DEFAULT_RETRIES = 2
@ -67,7 +65,6 @@ async def async_setup_entry(
class PS4Device(MediaPlayerEntity):
"""Representation of a PS4."""
_attr_icon = ICON
_attr_supported_features = (
MediaPlayerEntityFeature.TURN_OFF
| MediaPlayerEntityFeature.TURN_ON
@ -75,6 +72,7 @@ class PS4Device(MediaPlayerEntity):
| MediaPlayerEntityFeature.STOP
| MediaPlayerEntityFeature.SELECT_SOURCE
)
_attr_translation_key = "media_player"
def __init__(
self,