Skip to content

Commit e592d39

Browse files
authored
Fix light group configuration (#80)
1 parent a3fd8fe commit e592d39

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

zha/application/platforms/light/__init__.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,13 +1131,6 @@ def __init__(self, group: Group):
11311131
# light groups change the update_group_from_child_delay so we need to do this
11321132
# before calling super
11331133
light_options = group.gateway.config.config.light_options
1134-
self._zha_config_transition = light_options.default_light_transition
1135-
self._zha_config_enable_light_transitioning_flag = (
1136-
light_options.enable_light_transitioning_flag
1137-
)
1138-
self._zha_config_always_prefer_xy_color_mode = (
1139-
light_options.always_prefer_xy_color_mode
1140-
)
11411134
self._zha_config_group_members_assume_state = (
11421135
light_options.group_members_assume_state
11431136
)
@@ -1146,9 +1139,15 @@ def __init__(self, group: Group):
11461139
kwargs["update_group_from_member_delay"] = (
11471140
ASSUME_UPDATE_GROUP_FROM_CHILD_DELAY
11481141
)
1149-
self._zha_config_enhanced_light_transition = False
1150-
11511142
super().__init__(group, **kwargs)
1143+
self._zha_config_transition = light_options.default_light_transition
1144+
self._zha_config_enable_light_transitioning_flag = (
1145+
light_options.enable_light_transitioning_flag
1146+
)
1147+
self._zha_config_always_prefer_xy_color_mode = (
1148+
light_options.always_prefer_xy_color_mode
1149+
)
1150+
self._zha_config_enhanced_light_transition = False
11521151
self._GROUP_SUPPORTS_EXECUTE_IF_OFF: bool = True
11531152

11541153
for member in group.members:

0 commit comments

Comments
 (0)