mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
Added bitfield of features for flux_led since we are supporting effects
This commit is contained in:
parent
4864a67dcd
commit
eadd07dc7d
@ -13,6 +13,7 @@ import voluptuous as vol
|
|||||||
from homeassistant.components.light import (ATTR_BRIGHTNESS, ATTR_RGB_COLOR,
|
from homeassistant.components.light import (ATTR_BRIGHTNESS, ATTR_RGB_COLOR,
|
||||||
ATTR_EFFECT, EFFECT_RANDOM,
|
ATTR_EFFECT, EFFECT_RANDOM,
|
||||||
SUPPORT_BRIGHTNESS,
|
SUPPORT_BRIGHTNESS,
|
||||||
|
SUPPORT_EFFECT,
|
||||||
SUPPORT_RGB_COLOR, Light)
|
SUPPORT_RGB_COLOR, Light)
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
@ -33,7 +34,8 @@ PLATFORM_SCHEMA = vol.Schema({
|
|||||||
vol.Optional('automatic_add', default=False): cv.boolean,
|
vol.Optional('automatic_add', default=False): cv.boolean,
|
||||||
}, extra=vol.ALLOW_EXTRA)
|
}, extra=vol.ALLOW_EXTRA)
|
||||||
|
|
||||||
SUPPORT_FLUX_LED = SUPPORT_BRIGHTNESS | SUPPORT_RGB_COLOR
|
SUPPORT_FLUX_LED = (SUPPORT_BRIGHTNESS | SUPPORT_EFFECT |
|
||||||
|
SUPPORT_RGB_COLOR)
|
||||||
|
|
||||||
|
|
||||||
def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user