Skip to content

Commit

Permalink
Migrate Heos to has entity name (#96595)
Browse files Browse the repository at this point in the history
  • Loading branch information
joostlek authored Jul 15, 2023
1 parent d65119b commit 3b309ca
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions homeassistant/components/heos/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down Expand Up @@ -392,11 +394,6 @@ def media_title(self) -> str:
"""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."""
Expand Down

0 comments on commit 3b309ca

Please sign in to comment.