From 5cea0bb3deb18fbaad10c715cfec18a9d4f36caa Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Tue, 18 Jul 2023 09:54:50 +0200 Subject: [PATCH] Migrate Soundtouch to has entity name (#96754) --- homeassistant/components/soundtouch/media_player.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/soundtouch/media_player.py b/homeassistant/components/soundtouch/media_player.py index 9cd94330812..f8670074c5c 100644 --- a/homeassistant/components/soundtouch/media_player.py +++ b/homeassistant/components/soundtouch/media_player.py @@ -73,6 +73,8 @@ class SoundTouchMediaPlayer(MediaPlayerEntity): | MediaPlayerEntityFeature.BROWSE_MEDIA ) _attr_device_class = MediaPlayerDeviceClass.SPEAKER + _attr_has_entity_name = True + _attr_name = None def __init__(self, device: SoundTouchDevice) -> None: """Create SoundTouch media player entity.""" @@ -80,7 +82,6 @@ class SoundTouchMediaPlayer(MediaPlayerEntity): self._device = device self._attr_unique_id = self._device.config.device_id - self._attr_name = self._device.config.name self._attr_device_info = DeviceInfo( identifiers={(DOMAIN, self._device.config.device_id)}, connections={