mirror of
https://github.com/esphome/esphome.git
synced 2025-04-15 07:10:33 +01:00
17 lines
399 B
C++
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
|