mirror of
https://github.com/home-assistant/core.git
synced 2025-12-20 10:59:24 +00:00
Set Xbox logo as icon for media player (#155459)
This commit is contained in:
@@ -11,6 +11,11 @@
|
||||
"default": "mdi:account"
|
||||
}
|
||||
},
|
||||
"media_player": {
|
||||
"xbox": {
|
||||
"default": "mdi:microsoft-xbox"
|
||||
}
|
||||
},
|
||||
"sensor": {
|
||||
"follower": {
|
||||
"default": "mdi:account-arrow-left"
|
||||
|
||||
@@ -70,6 +70,7 @@ class XboxMediaPlayer(XboxConsoleBaseEntity, MediaPlayerEntity):
|
||||
"""Representation of an Xbox Media Player."""
|
||||
|
||||
_attr_media_image_remotely_accessible = True
|
||||
_attr_translation_key = "xbox"
|
||||
|
||||
@property
|
||||
def state(self) -> MediaPlayerState | None:
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
'previous_unique_id': None,
|
||||
'suggested_object_id': None,
|
||||
'supported_features': <MediaPlayerEntityFeature: 149385>,
|
||||
'translation_key': None,
|
||||
'translation_key': 'xbox',
|
||||
'unique_id': 'HIJKLMN',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
@@ -84,7 +84,7 @@
|
||||
'previous_unique_id': None,
|
||||
'suggested_object_id': None,
|
||||
'supported_features': <MediaPlayerEntityFeature: 149385>,
|
||||
'translation_key': None,
|
||||
'translation_key': 'xbox',
|
||||
'unique_id': 'ABCDEFG',
|
||||
'unit_of_measurement': None,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user