ESPHome 2026.5.0
Loading...
Searching...
No Matches
copy_button.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace esphome::copy {
7
8class CopyButton : public button::Button, public Component {
9 public:
10 void set_source(button::Button *source) { source_ = source; }
11 void dump_config() override;
12
13 protected:
14 void press_action() override;
15
17};
18
19} // namespace esphome::copy
Base class for all buttons.
Definition button.h:25
button::Button * source_
Definition copy_button.h:16
void press_action() override
void dump_config() override
void set_source(button::Button *source)
Definition copy_button.h:10