ESPHome 2026.5.0b1
Loading...
Searching...
No Matches
demo_select.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace esphome::demo {
7
8class DemoSelect : public select::Select, public Component {
9 protected:
10 void control(size_t index) override { this->publish_state(index); }
11};
12
13} // namespace esphome::demo
void control(size_t index) override
Definition demo_select.h:10
Base-class for all selects.
Definition select.h:29
void publish_state(const std::string &state)
Definition select.cpp:11