mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-19 12:43:28 +02:00
22cdb8dfc3
Co-authored-by: descipher <120155735+GelidusResearch@users.noreply.github.com>
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
|