mirror of
https://github.com/esphome/esphome.git
synced 2025-11-19 00:05:43 +00:00
26 lines
484 B
C++
26 lines
484 B
C++
#pragma once
|
|
|
|
#include "esphome/core/component.h"
|
|
#include "esphome/components/fan/fan.h"
|
|
|
|
namespace esphome {
|
|
namespace copy {
|
|
|
|
class CopyFan : public fan::Fan, public Component {
|
|
public:
|
|
void set_source(fan::Fan *source) { source_ = source; }
|
|
void setup() override;
|
|
void dump_config() override;
|
|
|
|
fan::FanTraits get_traits() override;
|
|
|
|
protected:
|
|
void control(const fan::FanCall &call) override;
|
|
;
|
|
|
|
fan::Fan *source_;
|
|
};
|
|
|
|
} // namespace copy
|
|
} // namespace esphome
|