ESPHome
2026.6.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::copy
{
7
8
class
CopyBinarySensor
:
public
binary_sensor::BinarySensor
,
public
Component
{
9
public
:
10
void
set_source
(
binary_sensor::BinarySensor
*source) {
source_
= source; }
11
void
setup
()
override
;
12
void
dump_config
()
override
;
13
14
protected
:
15
binary_sensor::BinarySensor
*
source_
;
16
};
17
18
}
// namespace esphome::copy
binary_sensor.h
esphome::Component
Definition
component.h:145
esphome::binary_sensor::BinarySensor
Base class for all binary_sensor-type classes.
Definition
binary_sensor.h:33
esphome::copy::CopyBinarySensor
Definition
copy_binary_sensor.h:8
esphome::copy::CopyBinarySensor::dump_config
void dump_config() override
Definition
copy_binary_sensor.cpp:14
esphome::copy::CopyBinarySensor::source_
binary_sensor::BinarySensor * source_
Definition
copy_binary_sensor.h:15
esphome::copy::CopyBinarySensor::set_source
void set_source(binary_sensor::BinarySensor *source)
Definition
copy_binary_sensor.h:10
esphome::copy::CopyBinarySensor::setup
void setup() override
Definition
copy_binary_sensor.cpp:8
component.h
esphome::copy
Definition
copy_binary_sensor.cpp:4
Generated by
1.12.0