mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 06:37:52 +00:00
Add icon translations to PS4 (#112190)
This commit is contained in:
parent
2585b240d3
commit
30a8c1739f
12
homeassistant/components/ps4/icons.json
Normal file
12
homeassistant/components/ps4/icons.json
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"entity": {
|
||||||
|
"media_player": {
|
||||||
|
"media_player": {
|
||||||
|
"default": "mdi:sony-playstation"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"services": {
|
||||||
|
"send_command": "mdi:terminal"
|
||||||
|
}
|
||||||
|
}
|
@ -41,8 +41,6 @@ from .const import (
|
|||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
ICON = "mdi:sony-playstation"
|
|
||||||
|
|
||||||
DEFAULT_RETRIES = 2
|
DEFAULT_RETRIES = 2
|
||||||
|
|
||||||
|
|
||||||
@ -67,7 +65,6 @@ async def async_setup_entry(
|
|||||||
class PS4Device(MediaPlayerEntity):
|
class PS4Device(MediaPlayerEntity):
|
||||||
"""Representation of a PS4."""
|
"""Representation of a PS4."""
|
||||||
|
|
||||||
_attr_icon = ICON
|
|
||||||
_attr_supported_features = (
|
_attr_supported_features = (
|
||||||
MediaPlayerEntityFeature.TURN_OFF
|
MediaPlayerEntityFeature.TURN_OFF
|
||||||
| MediaPlayerEntityFeature.TURN_ON
|
| MediaPlayerEntityFeature.TURN_ON
|
||||||
@ -75,6 +72,7 @@ class PS4Device(MediaPlayerEntity):
|
|||||||
| MediaPlayerEntityFeature.STOP
|
| MediaPlayerEntityFeature.STOP
|
||||||
| MediaPlayerEntityFeature.SELECT_SOURCE
|
| MediaPlayerEntityFeature.SELECT_SOURCE
|
||||||
)
|
)
|
||||||
|
_attr_translation_key = "media_player"
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user