Skip to content

Commit

Permalink
Migrate Panasonic Viera to has entity name
Browse files Browse the repository at this point in the history
  • Loading branch information
joostlek authored and frenck committed Oct 8, 2023
1 parent 6420cdb commit 0fb643c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions homeassistant/components/panasonic_viera/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ class PanasonicVieraTVEntity(MediaPlayerEntity):
| MediaPlayerEntityFeature.STOP
| MediaPlayerEntityFeature.BROWSE_MEDIA
)
_attr_has_entity_name = True
_attr_name = None

def __init__(self, remote, name, device_info):
"""Initialize the entity."""
Expand Down Expand Up @@ -100,11 +102,6 @@ def device_class(self):
"""Return the device class of the device."""
return MediaPlayerDeviceClass.TV

@property
def name(self):
"""Return the name of the device."""
return self._name

@property
def state(self):
"""Return the state of the device."""
Expand Down

0 comments on commit 0fb643c

Please sign in to comment.