mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-23 06:08:30 +02:00
4bbde8357a
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Co-authored-by: Peter Pan <twinkle-pirate@hotmail.com>
16 lines
369 B
C++
16 lines
369 B
C++
#include "existence_boundary_select.h"
|
|
|
|
namespace esphome {
|
|
namespace seeed_mr24hpc1 {
|
|
|
|
void ExistenceBoundarySelect::control(const std::string &value) {
|
|
this->publish_state(value);
|
|
auto index = this->index_of(value);
|
|
if (index.has_value()) {
|
|
this->parent_->set_existence_boundary(index.value());
|
|
}
|
|
}
|
|
|
|
} // namespace seeed_mr24hpc1
|
|
} // namespace esphome
|