From 2f26407a31ac5ec7e38b0ff8deb21b37acda9786 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Sat, 23 Apr 2022 21:16:40 +0200 Subject: [PATCH] Use ColorMode enum in insteon (#70511) --- homeassistant/components/insteon/light.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/insteon/light.py b/homeassistant/components/insteon/light.py index f885aec27b9..0b1fd2270e8 100644 --- a/homeassistant/components/insteon/light.py +++ b/homeassistant/components/insteon/light.py @@ -3,8 +3,8 @@ from pyinsteon.extended_property import ON_LEVEL from homeassistant.components.light import ( ATTR_BRIGHTNESS, - COLOR_MODE_BRIGHTNESS, DOMAIN as LIGHT_DOMAIN, + ColorMode, LightEntity, ) from homeassistant.config_entries import ConfigEntry @@ -41,8 +41,8 @@ async def async_setup_entry( class InsteonDimmerEntity(InsteonEntity, LightEntity): """A Class for an Insteon light entity.""" - _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):