From 34ad7b329e93ce2327bced2eb4a84d779bbab823 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Sat, 23 Apr 2022 21:15:54 +0200 Subject: [PATCH] Use ColorMode enum in hyperion (#70507) --- homeassistant/components/hyperion/light.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/hyperion/light.py b/homeassistant/components/hyperion/light.py index 423445d0f7a..23aefaea904 100644 --- a/homeassistant/components/hyperion/light.py +++ b/homeassistant/components/hyperion/light.py @@ -13,7 +13,7 @@ from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_EFFECT, ATTR_HS_COLOR, - COLOR_MODE_HS, + ColorMode, LightEntity, LightEntityFeature, ) @@ -124,8 +124,8 @@ async def async_setup_entry( class HyperionBaseLight(LightEntity): """A Hyperion light base class.""" - _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__(