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