From 32e87ef17d399026d159c3e9f6a80d9d02c751d5 Mon Sep 17 00:00:00 2001 From: TheJulianJES Date: Tue, 24 Sep 2024 23:10:14 +0200 Subject: [PATCH] Revert "Only add `EFFECT_OFF` if there are other effects" This reverts commit aa870ef62f908aef14cb1081dbc76fa71a361cd8. --- zha/application/platforms/light/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zha/application/platforms/light/__init__.py b/zha/application/platforms/light/__init__.py index a23a88de..04001636 100644 --- a/zha/application/platforms/light/__init__.py +++ b/zha/application/platforms/light/__init__.py @@ -665,7 +665,7 @@ def __init__( if self._color_cluster_handler: self._min_mireds: int = self._color_cluster_handler.min_mireds self._max_mireds: int = self._color_cluster_handler.max_mireds - effect_list = [] + effect_list = [EFFECT_OFF] light_options = device.gateway.config.config.light_options @@ -714,7 +714,7 @@ def __init__( self._supported_features |= LightEntityFeature.FLASH if effect_list: - self._effect_list = [EFFECT_OFF, *effect_list] + self._effect_list = effect_list self._zha_config_transition = light_options.default_light_transition self._zha_config_enhanced_light_transition = (