mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Adjust supported_features defaults in lights (#82252)
This commit is contained in:
parent
dd7bc7971f
commit
4986f65dca
@ -116,8 +116,3 @@ class AbodeLight(AbodeDevice, LightEntity):
|
||||
if self._device.is_dimmable:
|
||||
return {ColorMode.BRIGHTNESS}
|
||||
return {ColorMode.ONOFF}
|
||||
|
||||
@property
|
||||
def supported_features(self) -> int:
|
||||
"""Flag supported features."""
|
||||
return 0
|
||||
|
@ -129,7 +129,6 @@ class DemoLight(LightEntity):
|
||||
self._ct = ct or random.choice(LIGHT_TEMPS)
|
||||
self._effect = effect
|
||||
self._effect_list = effect_list
|
||||
self._attr_supported_features = 0
|
||||
self._hs_color = hs_color
|
||||
self._attr_name = name
|
||||
self._rgbw_color = rgbw_color
|
||||
|
@ -150,7 +150,6 @@ class ZwaveLight(ZWaveBaseEntity, LightEntity):
|
||||
self._supported_color_modes.add(ColorMode.BRIGHTNESS)
|
||||
|
||||
# Entity class attributes
|
||||
self._attr_supported_features = 0
|
||||
self.supports_brightness_transition = bool(
|
||||
self._target_brightness is not None
|
||||
and TRANSITION_DURATION_OPTION
|
||||
|
Loading…
x
Reference in New Issue
Block a user