Remove SUPPORT_WHITE_VALUE from ZHA light groups (#49569)
This commit is contained in:
parent
b3c9d854f5
commit
2502e7669c
1 changed files with 0 additions and 6 deletions
|
@ -23,14 +23,12 @@ from homeassistant.components.light import (
|
|||
ATTR_HS_COLOR,
|
||||
ATTR_MAX_MIREDS,
|
||||
ATTR_MIN_MIREDS,
|
||||
ATTR_WHITE_VALUE,
|
||||
SUPPORT_BRIGHTNESS,
|
||||
SUPPORT_COLOR,
|
||||
SUPPORT_COLOR_TEMP,
|
||||
SUPPORT_EFFECT,
|
||||
SUPPORT_FLASH,
|
||||
SUPPORT_TRANSITION,
|
||||
SUPPORT_WHITE_VALUE,
|
||||
)
|
||||
from homeassistant.const import ATTR_SUPPORTED_FEATURES, STATE_ON, STATE_UNAVAILABLE
|
||||
from homeassistant.core import State, callback
|
||||
|
@ -90,7 +88,6 @@ SUPPORT_GROUP_LIGHT = (
|
|||
| SUPPORT_FLASH
|
||||
| SUPPORT_COLOR
|
||||
| SUPPORT_TRANSITION
|
||||
| SUPPORT_WHITE_VALUE
|
||||
)
|
||||
|
||||
|
||||
|
@ -131,7 +128,6 @@ class BaseLight(LogMixin, light.LightEntity):
|
|||
self._color_temp: int | None = None
|
||||
self._min_mireds: int | None = 153
|
||||
self._max_mireds: int | None = 500
|
||||
self._white_value: int | None = None
|
||||
self._effect_list: list[str] | None = None
|
||||
self._effect: str | None = None
|
||||
self._supported_features: int = 0
|
||||
|
@ -598,8 +594,6 @@ class LightGroup(BaseLight, ZhaGroupEntity):
|
|||
on_states, ATTR_HS_COLOR, reduce=helpers.mean_tuple
|
||||
)
|
||||
|
||||
self._white_value = helpers.reduce_attribute(on_states, ATTR_WHITE_VALUE)
|
||||
|
||||
self._color_temp = helpers.reduce_attribute(on_states, ATTR_COLOR_TEMP)
|
||||
self._min_mireds = helpers.reduce_attribute(
|
||||
states, ATTR_MIN_MIREDS, default=153, reduce=min
|
||||
|
|
Loading…
Add table
Reference in a new issue