Use LightEntityFeature enum in wemo (#71058)

This commit is contained in:
epenet 2022-04-29 21:49:16 +02:00 committed by GitHub
parent faffd809d5
commit da8160a770
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,8 +14,8 @@ from homeassistant.components.light import (
SUPPORT_BRIGHTNESS, SUPPORT_BRIGHTNESS,
SUPPORT_COLOR, SUPPORT_COLOR,
SUPPORT_COLOR_TEMP, SUPPORT_COLOR_TEMP,
SUPPORT_TRANSITION,
LightEntity, LightEntity,
LightEntityFeature,
) )
from homeassistant.config_entries import ConfigEntry from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant, callback from homeassistant.core import HomeAssistant, callback
@ -30,7 +30,10 @@ from .entity import WemoBinaryStateEntity, WemoEntity
from .wemo_device import DeviceCoordinator from .wemo_device import DeviceCoordinator
SUPPORT_WEMO = ( 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 # The WEMO_ constants below come from pywemo itself