From faed58c01b2ed6b87e8c6404950a235e03d9532e Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Sun, 27 Aug 2023 16:09:15 +0200 Subject: [PATCH] Migrate Somfy mylink to has entity name (#98947) --- homeassistant/components/somfy_mylink/cover.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/somfy_mylink/cover.py b/homeassistant/components/somfy_mylink/cover.py index c4c506401d9..38f5fdc12f8 100644 --- a/homeassistant/components/somfy_mylink/cover.py +++ b/homeassistant/components/somfy_mylink/cover.py @@ -65,6 +65,8 @@ class SomfyShade(RestoreEntity, CoverEntity): _attr_should_poll = False _attr_assumed_state = True + _attr_has_entity_name = True + _attr_name = None def __init__( self, @@ -78,7 +80,6 @@ class SomfyShade(RestoreEntity, CoverEntity): self.somfy_mylink = somfy_mylink self._target_id = target_id self._attr_unique_id = target_id - self._attr_name = name self._reverse = reverse self._attr_is_closed = None self._attr_device_class = device_class