ESPHome  2024.10.2
gate_threshold_number.cpp
Go to the documentation of this file.
2 
3 namespace esphome {
4 namespace ld2410 {
5 
6 GateThresholdNumber::GateThresholdNumber(uint8_t gate) : gate_(gate) {}
7 
8 void GateThresholdNumber::control(float value) {
9  this->publish_state(value);
10  this->parent_->set_gate_threshold(this->gate_);
11 }
12 
13 } // namespace ld2410
14 } // namespace esphome
void publish_state(float state)
Definition: number.cpp:9
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7