ESPHome  2024.11.1
copy_fan.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 namespace esphome {
7 namespace copy {
8 
9 class CopyFan : public fan::Fan, public Component {
10  public:
11  void set_source(fan::Fan *source) { source_ = source; }
12  void setup() override;
13  void dump_config() override;
14  float get_setup_priority() const override { return setup_priority::DATA; }
15 
16  fan::FanTraits get_traits() override;
17 
18  protected:
19  void control(const fan::FanCall &call) override;
20  ;
21 
23 };
24 
25 } // namespace copy
26 } // namespace esphome
const float DATA
For components that import data from directly connected sensors like DHT.
Definition: component.cpp:19
float get_setup_priority() const override
Definition: copy_fan.h:14
void set_source(fan::Fan *source)
Definition: copy_fan.h:11
void setup() override
Definition: copy_fan.cpp:9
fan::Fan * source_
Definition: copy_fan.h:20
void dump_config() override
Definition: copy_fan.cpp:27
void control(const fan::FanCall &call) override
Definition: copy_fan.cpp:42
fan::FanTraits get_traits() override
Definition: copy_fan.cpp:29
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7