From c0b0b46fe8081890963f40be4837ac8aff8d03a0 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Sat, 23 Apr 2022 18:29:44 +0000 Subject: [PATCH] Use ColorMode enum in everlights --- homeassistant/components/everlights/light.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/everlights/light.py b/homeassistant/components/everlights/light.py index b001f5d63a4bd0..ab195d81530b12 100644 --- a/homeassistant/components/everlights/light.py +++ b/homeassistant/components/everlights/light.py @@ -11,8 +11,8 @@ ATTR_BRIGHTNESS, ATTR_EFFECT, ATTR_HS_COLOR, - COLOR_MODE_HS, PLATFORM_SCHEMA, + ColorMode, LightEntity, LightEntityFeature, ) @@ -74,8 +74,8 @@ async def async_setup_platform( class EverLightsLight(LightEntity): """Representation of a Flux light.""" - _attr_color_mode = COLOR_MODE_HS - _attr_supported_color_modes = {COLOR_MODE_HS} + _attr_color_mode = ColorMode.HS + _attr_supported_color_modes = {ColorMode.HS} _attr_supported_features = LightEntityFeature.EFFECT def __init__(self, api, channel, status, effects):