mirror of
https://github.com/esphome/esphome.git
synced 2025-10-27 21:23:48 +00:00
Fix light_call.cpp to use first_value_from_mask instead of first_mode_from_mask
The generic FiniteSetMask uses first_value_from_mask, not first_mode_from_mask. This aligns with the enum_mask_helper implementation.
This commit is contained in:
@@ -437,7 +437,7 @@ ColorMode LightCall::compute_color_mode_() {
|
||||
|
||||
// Use the preferred suitable mode.
|
||||
if (intersection != 0) {
|
||||
ColorMode mode = ColorModeMask::first_mode_from_mask(intersection);
|
||||
ColorMode mode = ColorModeMask::first_value_from_mask(intersection);
|
||||
ESP_LOGI(TAG, "'%s': color mode not specified; using %s", this->parent_->get_name().c_str(),
|
||||
LOG_STR_ARG(color_mode_to_human(mode)));
|
||||
return mode;
|
||||
|
||||
Reference in New Issue
Block a user