Add configuration flow abilites to the ld2410 component (#4434)

This commit is contained in:
Regev Brody
2023-08-16 02:31:18 +03:00
committed by Jesse Hills
parent 48e4cb5ae2
commit 63fa922547
35 changed files with 1621 additions and 327 deletions
@@ -0,0 +1,14 @@
#include "gate_threshold_number.h"
namespace esphome {
namespace ld2410 {
GateThresholdNumber::GateThresholdNumber(uint8_t gate) : gate_(gate) {}
void GateThresholdNumber::control(float value) {
this->publish_state(value);
this->parent_->set_gate_threshold(this->gate_);
}
} // namespace ld2410
} // namespace esphome