cogito/esphome_dev/esphome/components/ld2410/number/gate_threshold_number.h

19 lines
375 B
C++

#pragma once
#include "esphome/components/number/number.h"
#include "../ld2410.h"
namespace esphome {
namespace ld2410 {
class GateThresholdNumber : public number::Number, public Parented<LD2410Component> {
public:
GateThresholdNumber(uint8_t gate);
protected:
uint8_t gate_;
void control(float value) override;
};
} // namespace ld2410
} // namespace esphome