From da8160a770be4bb76df0cb832814a8132ed0ec22 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Fri, 29 Apr 2022 21:49:16 +0200 Subject: [PATCH] Use LightEntityFeature enum in wemo (#71058) --- homeassistant/components/wemo/light.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/wemo/light.py b/homeassistant/components/wemo/light.py index b7c6aefa868..34ec7cab08d 100644 --- a/homeassistant/components/wemo/light.py +++ b/homeassistant/components/wemo/light.py @@ -14,8 +14,8 @@ from homeassistant.components.light import ( SUPPORT_BRIGHTNESS, SUPPORT_COLOR, SUPPORT_COLOR_TEMP, - SUPPORT_TRANSITION, LightEntity, + LightEntityFeature, ) from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant, callback @@ -30,7 +30,10 @@ from .entity import WemoBinaryStateEntity, WemoEntity from .wemo_device import DeviceCoordinator SUPPORT_WEMO = ( - SUPPORT_BRIGHTNESS | SUPPORT_COLOR_TEMP | SUPPORT_COLOR | SUPPORT_TRANSITION + SUPPORT_BRIGHTNESS + | SUPPORT_COLOR_TEMP + | SUPPORT_COLOR + | LightEntityFeature.TRANSITION ) # The WEMO_ constants below come from pywemo itself