mirror of
https://github.com/esphome/esphome.git
synced 2025-07-31 07:36:35 +00:00
missed existing helper
This commit is contained in:
parent
de3e9451dc
commit
b7d48284ac
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user