mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Adding xy_color attribute support to deconz lights (#12106)
This commit is contained in:
parent
4ac9e7edf4
commit
9b0dbf3fbe
@ -9,7 +9,7 @@ import asyncio
|
||||
from homeassistant.components.deconz import DOMAIN as DECONZ_DATA
|
||||
from homeassistant.components.light import (
|
||||
ATTR_BRIGHTNESS, ATTR_COLOR_TEMP, ATTR_EFFECT, ATTR_FLASH, ATTR_RGB_COLOR,
|
||||
ATTR_TRANSITION, EFFECT_COLORLOOP, FLASH_LONG, FLASH_SHORT,
|
||||
ATTR_TRANSITION, ATTR_XY_COLOR, EFFECT_COLORLOOP, FLASH_LONG, FLASH_SHORT,
|
||||
SUPPORT_BRIGHTNESS, SUPPORT_COLOR_TEMP, SUPPORT_EFFECT, SUPPORT_FLASH,
|
||||
SUPPORT_RGB_COLOR, SUPPORT_TRANSITION, SUPPORT_XY_COLOR, Light)
|
||||
from homeassistant.core import callback
|
||||
@ -134,6 +134,9 @@ class DeconzLight(Light):
|
||||
data['xy'] = xyb[0], xyb[1]
|
||||
data['bri'] = xyb[2]
|
||||
|
||||
if ATTR_XY_COLOR in kwargs:
|
||||
data['xy'] = kwargs[ATTR_XY_COLOR]
|
||||
|
||||
if ATTR_BRIGHTNESS in kwargs:
|
||||
data['bri'] = kwargs[ATTR_BRIGHTNESS]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user