mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Use LightEntityFeature enum in wemo (#71058)
This commit is contained in:
parent
faffd809d5
commit
da8160a770
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user