ESPHome
2025.9.0-dev
Loading...
Searching...
No Matches
esphome
components
copy
binary_sensor
copy_binary_sensor.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/components/binary_sensor/binary_sensor.h
"
5
6
namespace
esphome
{
7
namespace
copy {
8
9
class
CopyBinarySensor
:
public
binary_sensor::BinarySensor
,
public
Component
{
10
public
:
11
void
set_source
(
binary_sensor::BinarySensor
*source) {
source_
= source; }
12
void
setup
()
override
;
13
void
dump_config
()
override
;
14
15
protected
:
16
binary_sensor::BinarySensor
*
source_
;
17
};
18
19
}
// namespace copy
20
}
// namespace esphome
binary_sensor.h
esphome::Component
Definition
component.h:71
esphome::binary_sensor::BinarySensor
Base class for all binary_sensor-type classes.
Definition
binary_sensor.h:36
esphome::copy::CopyBinarySensor
Definition
copy_binary_sensor.h:9
esphome::copy::CopyBinarySensor::dump_config
void dump_config() override
Definition
copy_binary_sensor.cpp:15
esphome::copy::CopyBinarySensor::source_
binary_sensor::BinarySensor * source_
Definition
copy_binary_sensor.h:16
esphome::copy::CopyBinarySensor::set_source
void set_source(binary_sensor::BinarySensor *source)
Definition
copy_binary_sensor.h:11
esphome::copy::CopyBinarySensor::setup
void setup() override
Definition
copy_binary_sensor.cpp:9
component.h
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
Generated by
1.12.0