Files
esphome-lsm6ds/esphome/components/ld2412/number/gate_threshold_number.cpp
T

13 lines
291 B
C++

#include "gate_threshold_number.h"
namespace esphome::ld2412 {
GateThresholdNumber::GateThresholdNumber(uint8_t gate) : gate_(gate) {}
void GateThresholdNumber::control(float value) {
this->publish_state(value);
this->parent_->set_gate_threshold();
}
} // namespace esphome::ld2412