From 7c5c0f7558bc3d6f34434357bc3a45563683614e Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 26 Apr 2022 14:27:10 +0200 Subject: [PATCH] Use light enums in lw12wifi (#70793) --- homeassistant/components/lw12wifi/light.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/lw12wifi/light.py b/homeassistant/components/lw12wifi/light.py index 12bbd1a3302..deb721da29e 100644 --- a/homeassistant/components/lw12wifi/light.py +++ b/homeassistant/components/lw12wifi/light.py @@ -12,10 +12,9 @@ from homeassistant.components.light import ( ATTR_HS_COLOR, ATTR_TRANSITION, PLATFORM_SCHEMA, - SUPPORT_EFFECT, - SUPPORT_TRANSITION, ColorMode, LightEntity, + LightEntityFeature, ) from homeassistant.const import CONF_HOST, CONF_NAME, CONF_PORT from homeassistant.core import HomeAssistant @@ -60,7 +59,7 @@ class LW12WiFi(LightEntity): _attr_color_mode = ColorMode.HS _attr_supported_color_modes = {ColorMode.HS} - _attr_supported_features = SUPPORT_EFFECT | SUPPORT_TRANSITION + _attr_supported_features = LightEntityFeature.EFFECT | LightEntityFeature.TRANSITION def __init__(self, name, lw12_light): """Initialise LW-12 WiFi LED Controller.