From 4986f65dca980622866242e81f6a637cbcc0123b Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 17 Nov 2022 12:47:08 +0100 Subject: [PATCH] Adjust supported_features defaults in lights (#82252) --- homeassistant/components/abode/light.py | 5 ----- homeassistant/components/demo/light.py | 1 - homeassistant/components/zwave_js/light.py | 1 - 3 files changed, 7 deletions(-) diff --git a/homeassistant/components/abode/light.py b/homeassistant/components/abode/light.py index 030e5744ce8..b930c3d654b 100644 --- a/homeassistant/components/abode/light.py +++ b/homeassistant/components/abode/light.py @@ -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 diff --git a/homeassistant/components/demo/light.py b/homeassistant/components/demo/light.py index c990e4ff8e0..2e5291b8a13 100644 --- a/homeassistant/components/demo/light.py +++ b/homeassistant/components/demo/light.py @@ -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 diff --git a/homeassistant/components/zwave_js/light.py b/homeassistant/components/zwave_js/light.py index 4c8fe2a3986..6b2fd2c8dbb 100644 --- a/homeassistant/components/zwave_js/light.py +++ b/homeassistant/components/zwave_js/light.py @@ -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