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