You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
604 B
30 lines
604 B
#include "empty_custom_fan.h"
|
|
#include "esphome/core/log.h"
|
|
|
|
namespace esphome {
|
|
namespace empty_custom_fan {
|
|
|
|
static const char *TAG = "empty_custom_fan.fan";
|
|
|
|
void EmptyCustomFan::setup() {
|
|
auto traits = fan::FanTraits();
|
|
traits.set_direction(false);
|
|
traits.set_oscillation(false);
|
|
traits.set_speed(false);
|
|
|
|
this->fan_->set_traits(traits);
|
|
|
|
this->fan_->add_on_state_callback([this]() { this->next_update_ = true; });
|
|
}
|
|
|
|
void EmptyCustomFan::loop() {
|
|
|
|
}
|
|
|
|
void EmptyCustomFan::dump_config() {
|
|
ESP_LOGCONFIG(TAG, "Empty fan");
|
|
}
|
|
|
|
} // namespace binary
|
|
} // namespace empty_custom_fan
|