1
0
mirror of https://github.com/esphome/esphome.git synced 2025-04-15 07:10:33 +01:00
esphome/esphome/components/ld2415h/number/min_speed_threshold_number.cpp
2024-05-26 22:45:26 -07:00

17 lines
399 B
C++

#include "min_speed_threshold_number.h"
#include "esphome/core/helpers.h"
#include "esphome/core/log.h"
namespace esphome {
namespace ld2415h {
static const char *const TAG = "LD2415H.min_speed_threshold_number";
void MinSpeedThresholdNumber::control(float speed) {
this->publish_state(speed);
this->parent_->set_min_speed_threshold(speed);
}
} // namespace ld2415h
} // namespace esphome