Skip to content

Commit

Permalink
Revert "Only add EFFECT_OFF if there are other effects"
Browse files Browse the repository at this point in the history
This reverts commit aa870ef.
  • Loading branch information
TheJulianJES committed Sep 24, 2024
1 parent 4eaf534 commit 32e87ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zha/application/platforms/light/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 = (
Expand Down

0 comments on commit 32e87ef

Please sign in to comment.