mirror of
https://github.com/esphome/esphome.git
synced 2026-06-24 11:25:35 +00:00
14 lines
307 B
C++
14 lines
307 B
C++
#pragma once
|
|
|
|
#include "esphome/components/select/select.h"
|
|
#include "esphome/core/component.h"
|
|
|
|
namespace esphome::demo {
|
|
|
|
class DemoSelect final : public select::Select, public Component {
|
|
protected:
|
|
void control(size_t index) override { this->publish_state(index); }
|
|
};
|
|
|
|
} // namespace esphome::demo
|