1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 14:43:51 +00:00

missed existing helper

This commit is contained in:
J. Nick Koston
2025-07-26 21:44:31 -10:00
parent de3e9451dc
commit b7d48284ac

View File

@@ -9,7 +9,7 @@ namespace light {
// See https://www.home-assistant.io/integrations/light.mqtt/#json-schema for documentation on the schema
// Lookup table for color mode strings
static const char *get_color_mode_json_str(ColorMode mode) {
static constexpr const char *get_color_mode_json_str(ColorMode mode) {
switch (mode) {
case ColorMode::ON_OFF:
return "onoff";