diff --git a/homeassistant/components/x10/light.py b/homeassistant/components/x10/light.py index f007b799bf6..42a15a643bd 100644 --- a/homeassistant/components/x10/light.py +++ b/homeassistant/components/x10/light.py @@ -8,8 +8,8 @@ import voluptuous as vol from homeassistant.components.light import ( ATTR_BRIGHTNESS, - COLOR_MODE_BRIGHTNESS, PLATFORM_SCHEMA, + ColorMode, LightEntity, ) from homeassistant.const import CONF_DEVICES, CONF_ID, CONF_NAME @@ -61,8 +61,8 @@ def setup_platform( class X10Light(LightEntity): """Representation of an X10 Light.""" - _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, light, is_cm11a): """Initialize an X10 Light."""