diff --git a/homeassistant/components/kulersky/light.py b/homeassistant/components/kulersky/light.py index c6763e6d9f6..91f19dbdd08 100644 --- a/homeassistant/components/kulersky/light.py +++ b/homeassistant/components/kulersky/light.py @@ -62,7 +62,10 @@ async def async_setup_entry( class KulerskyLight(LightEntity): - """Representation of an Kuler Sky Light.""" + """Representation of a Kuler Sky Light.""" + + _attr_has_entity_name = True + _attr_name = None def __init__(self, light: pykulersky.Light) -> None: """Initialize a Kuler Sky light.""" @@ -88,11 +91,6 @@ class KulerskyLight(LightEntity): "Exception disconnected from %s", self._light.address, exc_info=True ) - @property - def name(self): - """Return the display name of this light.""" - return self._light.name - @property def unique_id(self): """Return the ID of this light.""" @@ -104,7 +102,7 @@ class KulerskyLight(LightEntity): return DeviceInfo( identifiers={(DOMAIN, self.unique_id)}, manufacturer="Brightech", - name=self.name, + name=self._light.name, ) @property