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