mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00
Migrate Heos to has entity name (#96595)
This commit is contained in:
parent
d65119bbb3
commit
3b309cad99
@ -114,6 +114,8 @@ class HeosMediaPlayer(MediaPlayerEntity):
|
||||
|
||||
_attr_media_content_type = MediaType.MUSIC
|
||||
_attr_should_poll = False
|
||||
_attr_has_entity_name = True
|
||||
_attr_name = None
|
||||
|
||||
def __init__(self, player):
|
||||
"""Initialize."""
|
||||
@ -392,11 +394,6 @@ class HeosMediaPlayer(MediaPlayerEntity):
|
||||
"""Title of current playing media."""
|
||||
return self._player.now_playing_media.song
|
||||
|
||||
@property
|
||||
def name(self) -> str:
|
||||
"""Return the name of the device."""
|
||||
return self._player.name
|
||||
|
||||
@property
|
||||
def shuffle(self) -> bool:
|
||||
"""Boolean if shuffle is enabled."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user