mirror of
https://github.com/esphome/esphome.git
synced 2025-10-31 23:21:54 +00:00
cleanups
This commit is contained in:
@@ -3,8 +3,8 @@
|
|||||||
namespace esphome {
|
namespace esphome {
|
||||||
namespace ld2410 {
|
namespace ld2410 {
|
||||||
|
|
||||||
void LightOutControlSelect::control(const std::string &value) {
|
void LightOutControlSelect::control(size_t index) {
|
||||||
this->publish_state(value);
|
this->publish_state(index);
|
||||||
this->parent_->set_light_out_control();
|
this->parent_->set_light_out_control();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
namespace esphome {
|
namespace esphome {
|
||||||
namespace ld2412 {
|
namespace ld2412 {
|
||||||
|
|
||||||
void LightOutControlSelect::control(const std::string &value) {
|
void LightOutControlSelect::control(size_t index) {
|
||||||
this->publish_state(value);
|
this->publish_state(index);
|
||||||
this->parent_->set_light_out_control();
|
this->parent_->set_light_out_control();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user