From 6dff2d6240be90cfcc14cb0c69d0a7d4050d04a7 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 30 Oct 2025 13:17:25 -0500 Subject: [PATCH] cleanups --- esphome/components/ld2410/select/light_out_control_select.cpp | 4 ++-- esphome/components/ld2412/select/light_out_control_select.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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(); }