From 0fb643c021c9bd169035705d42a3ab9373c6b7e1 Mon Sep 17 00:00:00 2001 From: joostlek Date: Mon, 10 Jul 2023 18:37:52 +0200 Subject: [PATCH] Migrate Panasonic Viera to has entity name --- homeassistant/components/panasonic_viera/media_player.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/panasonic_viera/media_player.py b/homeassistant/components/panasonic_viera/media_player.py index a159c47a7c90f3..6ebd87377e7719 100644 --- a/homeassistant/components/panasonic_viera/media_player.py +++ b/homeassistant/components/panasonic_viera/media_player.py @@ -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.""" @@ -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."""