ESPHome
2025.6.3
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
{
7
namespace
demo {
8
9
class
DemoSelect
:
public
select::Select
,
public
Component
{
10
protected
:
11
void
control
(
const
std::string &value)
override
{ this->
publish_state
(value); }
12
};
13
14
}
// namespace demo
15
}
// namespace esphome
esphome::Component
Definition
component.h:70
esphome::demo::DemoSelect
Definition
demo_select.h:9
esphome::demo::DemoSelect::control
void control(const std::string &value) override
Definition
demo_select.h:11
esphome::select::Select
Base-class for all selects.
Definition
select.h:31
esphome::select::Select::publish_state
void publish_state(const std::string &state)
Definition
select.cpp:9
component.h
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
select.h
Generated by
1.12.0