Migrate Heos to has entity name (#96595)

This commit is contained in:
Joost Lekkerkerker 2023-07-15 19:09:37 +02:00 committed by GitHub
parent d65119bbb3
commit 3b309cad99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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."""