mirror of
https://github.com/esphome/esphome.git
synced 2025-09-23 21:52:23 +01:00
23 lines
466 B
C++
23 lines
466 B
C++
#pragma once
|
|
|
|
#include "esphome/core/component.h"
|
|
#include "esphome/components/select/select.h"
|
|
|
|
namespace esphome {
|
|
namespace copy {
|
|
|
|
class CopySelect : public select::Select, public Component {
|
|
public:
|
|
void set_source(select::Select *source) { source_ = source; }
|
|
void setup() override;
|
|
void dump_config() override;
|
|
|
|
protected:
|
|
void control(const std::string &value) override;
|
|
|
|
select::Select *source_;
|
|
};
|
|
|
|
} // namespace copy
|
|
} // namespace esphome
|