mirror of
https://github.com/esphome/esphome.git
synced 2025-11-18 15:55:46 +00:00
17 lines
368 B
C++
17 lines
368 B
C++
#include "operating_mode_select.h"
|
|
#include "esphome/core/helpers.h"
|
|
#include "esphome/core/log.h"
|
|
|
|
namespace esphome {
|
|
namespace ld2420 {
|
|
|
|
static const char *const TAG = "ld2420.select";
|
|
|
|
void LD2420Select::control(const std::string &value) {
|
|
this->publish_state(value);
|
|
this->parent_->set_operating_mode(value);
|
|
}
|
|
|
|
} // namespace ld2420
|
|
} // namespace esphome
|