ESPHome
2026.5.0b1
Loading...
Searching...
No Matches
esphome
components
demo
demo_select.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/select/select.h
"
4
#include "
esphome/core/component.h
"
5
6
namespace
esphome::demo
{
7
8
class
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
esphome::Component
Definition
component.h:145
esphome::demo::DemoSelect
Definition
demo_select.h:8
esphome::demo::DemoSelect::control
void control(size_t index) override
Definition
demo_select.h:10
esphome::select::Select
Base-class for all selects.
Definition
select.h:29
esphome::select::Select::publish_state
void publish_state(const std::string &state)
Definition
select.cpp:11
component.h
esphome::demo
Definition
demo_alarm_control_panel.h:6
select.h
Generated by
1.12.0