diff --git a/esphome/components/ld2410/select/light_out_control_select.cpp b/esphome/components/ld2410/select/light_out_control_select.cpp index ac23248a64..25d7ced666 100644 --- a/esphome/components/ld2410/select/light_out_control_select.cpp +++ b/esphome/components/ld2410/select/light_out_control_select.cpp @@ -3,8 +3,8 @@ namespace esphome { namespace ld2410 { -void LightOutControlSelect::control(const std::string &value) { - this->publish_state(value); +void LightOutControlSelect::control(size_t index) { + this->publish_state(index); this->parent_->set_light_out_control(); } diff --git a/esphome/components/ld2412/select/light_out_control_select.cpp b/esphome/components/ld2412/select/light_out_control_select.cpp index c331729d40..cfbc7f7d7c 100644 --- a/esphome/components/ld2412/select/light_out_control_select.cpp +++ b/esphome/components/ld2412/select/light_out_control_select.cpp @@ -3,8 +3,8 @@ namespace esphome { namespace ld2412 { -void LightOutControlSelect::control(const std::string &value) { - this->publish_state(value); +void LightOutControlSelect::control(size_t index) { + this->publish_state(index); this->parent_->set_light_out_control(); }