ESPHome
2025.9.0-dev
Loading...
Searching...
No Matches
esphome
components
copy
fan
copy_fan.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/components/fan/fan.h
"
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
15
fan::FanTraits
get_traits
()
override
;
16
17
protected
:
18
void
control
(
const
fan::FanCall
&
call
)
override
;
19
;
20
21
fan::Fan
*
source_
;
22
};
23
24
}
// namespace copy
25
}
// namespace esphome
esphome::Component
Definition
component.h:71
esphome::Component::call
void call()
Definition
component.cpp:151
esphome::copy::CopyFan
Definition
copy_fan.h:9
esphome::copy::CopyFan::control
void control(const fan::FanCall &call) override
Definition
copy_fan.cpp:42
esphome::copy::CopyFan::dump_config
void dump_config() override
Definition
copy_fan.cpp:27
esphome::copy::CopyFan::source_
fan::Fan * source_
Definition
copy_fan.h:21
esphome::copy::CopyFan::get_traits
fan::FanTraits get_traits() override
Definition
copy_fan.cpp:29
esphome::copy::CopyFan::setup
void setup() override
Definition
copy_fan.cpp:9
esphome::copy::CopyFan::set_source
void set_source(fan::Fan *source)
Definition
copy_fan.h:11
esphome::fan::FanCall
Definition
fan.h:37
esphome::fan::Fan
Definition
fan.h:107
esphome::fan::FanTraits
Definition
fan_traits.h:16
component.h
fan.h
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
Generated by
1.12.0