2323from flux_led .aioscanner import AIOBulbScanner , LEDENETDiscovery
2424from flux_led .const import (
2525 COLOR_MODE_CCT ,
26+ COLOR_MODE_DIM ,
2627 COLOR_MODE_RGB ,
2728 COLOR_MODE_RGBW ,
2829 COLOR_MODE_RGBWW ,
@@ -4358,7 +4359,7 @@ def _updated_callback(*args, **kwargs):
43584359 assert light .version_num == 1
43594360 assert light .protocol == PROTOCOL_LEDENET_EXTENDED_CUSTOM
43604361 assert "Surplife" in light .model
4361- assert light .color_modes == {COLOR_MODE_RGB , COLOR_MODE_CCT }
4362+ assert light .color_modes == {COLOR_MODE_RGB , COLOR_MODE_DIM }
43624363 assert light .supports_extended_custom_effects is True
43634364 assert light .microphone is True
43644365
@@ -4466,7 +4467,7 @@ def test_extended_custom_effect_option_enum_values():
44664467
44674468def test_construct_extended_custom_effect_single_color ():
44684469 """Test constructing an extended custom effect with single color."""
4469- proto = ProtocolLEDENET25Byte ()
4470+ proto = ProtocolLEDENETExtendedCustom ()
44704471
44714472 # Single red color, pattern Wave, default settings
44724473 result = proto .construct_extended_custom_effect (
@@ -4491,7 +4492,7 @@ def test_construct_extended_custom_effect_single_color():
44914492
44924493def test_construct_extended_custom_effect_multiple_colors ():
44934494 """Test constructing an extended custom effect with multiple colors."""
4494- proto = ProtocolLEDENET25Byte ()
4495+ proto = ProtocolLEDENETExtendedCustom ()
44954496
44964497 # Three colors: red, green, blue
44974498 colors = [(255 , 0 , 0 ), (0 , 255 , 0 ), (0 , 0 , 255 )]
@@ -4510,7 +4511,7 @@ def test_construct_extended_custom_effect_multiple_colors():
45104511
45114512def test_construct_extended_custom_effect_color_order ():
45124513 """Test that colors are stored in input order."""
4513- proto = ProtocolLEDENET25Byte ()
4514+ proto = ProtocolLEDENETExtendedCustom ()
45144515
45154516 # Two distinct colors
45164517 colors = [(255 , 0 , 0 ), (0 , 0 , 255 )] # Red, Blue
@@ -4535,7 +4536,7 @@ def test_construct_extended_custom_effect_color_order():
45354536
45364537def test_construct_extended_custom_effect_hsv_conversion ():
45374538 """Test RGB to HSV conversion accuracy."""
4538- proto = ProtocolLEDENET25Byte ()
4539+ proto = ProtocolLEDENETExtendedCustom ()
45394540
45404541 # Test with a known color: pure green
45414542 colors = [(0 , 255 , 0 )]
@@ -4553,7 +4554,7 @@ def test_construct_extended_custom_effect_hsv_conversion():
45534554
45544555def test_construct_extended_custom_effect_speed_clamping ():
45554556 """Test that speed is clamped to 0-100."""
4556- proto = ProtocolLEDENET25Byte ()
4557+ proto = ProtocolLEDENETExtendedCustom ()
45574558
45584559 # Speed > 100 should be clamped
45594560 result = proto .construct_extended_custom_effect (
@@ -4574,7 +4575,7 @@ def test_construct_extended_custom_effect_speed_clamping():
45744575
45754576def test_construct_extended_custom_effect_density_clamping ():
45764577 """Test that density is clamped to 0-100."""
4577- proto = ProtocolLEDENET25Byte ()
4578+ proto = ProtocolLEDENETExtendedCustom ()
45784579
45794580 # Density > 100 should be clamped
45804581 result = proto .construct_extended_custom_effect (
@@ -4587,7 +4588,7 @@ def test_construct_extended_custom_effect_density_clamping():
45874588
45884589def test_construct_extended_custom_effect_max_colors ():
45894590 """Test constructing an effect with maximum 8 colors."""
4590- proto = ProtocolLEDENET25Byte ()
4591+ proto = ProtocolLEDENETExtendedCustom ()
45914592
45924593 # 8 colors (maximum)
45934594 colors = [
@@ -4613,7 +4614,7 @@ def test_construct_extended_custom_effect_max_colors():
46134614
46144615def test_construct_extended_custom_effect_with_enums ():
46154616 """Test using enum values for parameters."""
4616- proto = ProtocolLEDENET25Byte ()
4617+ proto = ProtocolLEDENETExtendedCustom ()
46174618
46184619 result = proto .construct_extended_custom_effect (
46194620 pattern_id = ExtendedCustomEffectPattern .WAVE ,
@@ -4629,7 +4630,7 @@ def test_construct_extended_custom_effect_with_enums():
46294630
46304631def test_construct_extended_custom_effect_with_variant_2 ():
46314632 """Test using VARIANT_2 option (e.g., breathe mode for rainbow patterns)."""
4632- proto = ProtocolLEDENET25Byte ()
4633+ proto = ProtocolLEDENETExtendedCustom ()
46334634
46344635 # Rainbow colors with VARIANT_2 option
46354636 colors = [
0 commit comments