From 2e5ad58c32390c7d6b4d485d59b8444de79976b7 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Sat, 23 Apr 2022 07:50:02 +0200 Subject: [PATCH] Use ColorMode enum in dynalite (#70436) --- homeassistant/components/dynalite/light.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/dynalite/light.py b/homeassistant/components/dynalite/light.py index 922ad0ada1b..826506fa9b7 100644 --- a/homeassistant/components/dynalite/light.py +++ b/homeassistant/components/dynalite/light.py @@ -1,6 +1,6 @@ """Support for Dynalite channels as lights.""" -from homeassistant.components.light import COLOR_MODE_BRIGHTNESS, LightEntity +from homeassistant.components.light import ColorMode, LightEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddEntitiesCallback @@ -22,8 +22,8 @@ async def async_setup_entry( class DynaliteLight(DynaliteBase, LightEntity): """Representation of a Dynalite Channel as a Home Assistant 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} @property def brightness(self) -> int: