Adjust supported_features defaults in lights (#82252)

This commit is contained in:
epenet 2022-11-17 12:47:08 +01:00 committed by GitHub
parent dd7bc7971f
commit 4986f65dca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

@ -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