From 033445721dd9f6adf7760efdb048d3aedd9bf752 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Sat, 23 Apr 2022 21:14:13 +0200 Subject: [PATCH] Use ColorMode enum in greenwave (#70499) --- homeassistant/components/greenwave/light.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/greenwave/light.py b/homeassistant/components/greenwave/light.py index 439f48a087e..a6b018f33ff 100644 --- a/homeassistant/components/greenwave/light.py +++ b/homeassistant/components/greenwave/light.py @@ -10,8 +10,8 @@ import voluptuous as vol from homeassistant.components.light import ( ATTR_BRIGHTNESS, - COLOR_MODE_BRIGHTNESS, PLATFORM_SCHEMA, + ColorMode, LightEntity, ) from homeassistant.const import CONF_HOST @@ -65,8 +65,8 @@ def setup_platform( class GreenwaveLight(LightEntity): """Representation of an Greenwave Reality 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} def __init__(self, light, host, token, gatewaydata): """Initialize a Greenwave Reality Light."""