mirror of https://github.com/esphome/esphome.git
16 lines
360 B
C++
16 lines
360 B
C++
#include "motion_boundary_select.h"
|
|
|
|
namespace esphome {
|
|
namespace seeed_mr24hpc1 {
|
|
|
|
void MotionBoundarySelect::control(const std::string &value) {
|
|
this->publish_state(value);
|
|
auto index = this->index_of(value);
|
|
if (index.has_value()) {
|
|
this->parent_->set_motion_boundary(index.value());
|
|
}
|
|
}
|
|
|
|
} // namespace seeed_mr24hpc1
|
|
} // namespace esphome
|