Use ColorMode enum in lw12wifi (#70520)

pull/70543/head
epenet 2022-04-23 21:22:24 +02:00 committed by GitHub
parent aa64acf918
commit e1f772c88f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -11,10 +11,10 @@ from homeassistant.components.light import (
ATTR_EFFECT,
ATTR_HS_COLOR,
ATTR_TRANSITION,
COLOR_MODE_HS,
PLATFORM_SCHEMA,
SUPPORT_EFFECT,
SUPPORT_TRANSITION,
ColorMode,
LightEntity,
)
from homeassistant.const import CONF_HOST, CONF_NAME, CONF_PORT
@ -58,8 +58,8 @@ def setup_platform(
class LW12WiFi(LightEntity):
"""LW-12 WiFi LED Controller."""
_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 = SUPPORT_EFFECT | SUPPORT_TRANSITION
def __init__(self, name, lw12_light):