From 663dbc4080dbaf338dd0bb178ded66fdfbef3f01 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Sat, 23 Apr 2022 22:08:00 +0200 Subject: [PATCH] Use ColorMode enum in x10 (#70556) --- homeassistant/components/x10/light.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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."""