Skip to content

Commit

Permalink
Fix light group configuration (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmulcahey authored Jul 13, 2024
1 parent a3fd8fe commit e592d39
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions zha/application/platforms/light/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1131,13 +1131,6 @@ def __init__(self, group: Group):
# light groups change the update_group_from_child_delay so we need to do this
# before calling super
light_options = group.gateway.config.config.light_options
self._zha_config_transition = light_options.default_light_transition
self._zha_config_enable_light_transitioning_flag = (
light_options.enable_light_transitioning_flag
)
self._zha_config_always_prefer_xy_color_mode = (
light_options.always_prefer_xy_color_mode
)
self._zha_config_group_members_assume_state = (
light_options.group_members_assume_state
)
Expand All @@ -1146,9 +1139,15 @@ def __init__(self, group: Group):
kwargs["update_group_from_member_delay"] = (
ASSUME_UPDATE_GROUP_FROM_CHILD_DELAY
)
self._zha_config_enhanced_light_transition = False

super().__init__(group, **kwargs)
self._zha_config_transition = light_options.default_light_transition
self._zha_config_enable_light_transitioning_flag = (
light_options.enable_light_transitioning_flag
)
self._zha_config_always_prefer_xy_color_mode = (
light_options.always_prefer_xy_color_mode
)
self._zha_config_enhanced_light_transition = False
self._GROUP_SUPPORTS_EXECUTE_IF_OFF: bool = True

for member in group.members:
Expand Down

0 comments on commit e592d39

Please sign in to comment.