diff --git a/homeassistant/components/enocean/light.py b/homeassistant/components/enocean/light.py index 167222f98a7..c7bf076c738 100644 --- a/homeassistant/components/enocean/light.py +++ b/homeassistant/components/enocean/light.py @@ -7,8 +7,8 @@ import voluptuous as vol from homeassistant.components.light import ( ATTR_BRIGHTNESS, - COLOR_MODE_BRIGHTNESS, PLATFORM_SCHEMA, + ColorMode, LightEntity, ) from homeassistant.const import CONF_ID, CONF_NAME @@ -49,8 +49,8 @@ def setup_platform( class EnOceanLight(EnOceanEntity, LightEntity): """Representation of an EnOcean light source.""" - _attr_color_mode = COLOR_MODE_BRIGHTNESS - _attr_supported_color_modes = {COLOR_MODE_BRIGHTNESS} + _attr_color_mode = ColorMode.BRIGHTNESS + _attr_supported_color_modes = {ColorMode.BRIGHTNESS} def __init__(self, sender_id, dev_id, dev_name): """Initialize the EnOcean light source."""