diff --git a/homeassistant/components/lutron/light.py b/homeassistant/components/lutron/light.py index 9fa677019e6..8f99caf691a 100644 --- a/homeassistant/components/lutron/light.py +++ b/homeassistant/components/lutron/light.py @@ -3,7 +3,7 @@ from __future__ import annotations from homeassistant.components.light import ( ATTR_BRIGHTNESS, - SUPPORT_BRIGHTNESS, + COLOR_MODE_BRIGHTNESS, LightEntity, ) from homeassistant.core import HomeAssistant @@ -41,16 +41,14 @@ def to_hass_level(level): class LutronLight(LutronDevice, LightEntity): """Representation of a Lutron Light, including dimmable.""" + _attr_color_mode = COLOR_MODE_BRIGHTNESS + _attr_supported_color_modes = {COLOR_MODE_BRIGHTNESS} + def __init__(self, area_name, lutron_device, controller): """Initialize the light.""" self._prev_brightness = None super().__init__(area_name, lutron_device, controller) - @property - def supported_features(self): - """Flag supported features.""" - return SUPPORT_BRIGHTNESS - @property def brightness(self): """Return the brightness of the light."""