[light] Fix ambiguous set_effect overload for const char* (#14732)

This commit is contained in:
J. Nick Koston
2026-03-12 18:28:25 -05:00
committed by GitHub
parent 25c74c8f99
commit fd8e510745
4 changed files with 10 additions and 2 deletions
+6
View File
@@ -60,6 +60,12 @@ esphome:
}
}
# Test set_effect with const char* doesn't cause ambiguous overload (issue #14728)
- lambda: |-
auto call = id(test_monochromatic_light).turn_on();
call.set_effect("None");
call.perform();
- light.toggle: test_binary_light
- light.turn_off: test_rgb_light
- light.turn_on: