ESPHome
2026.11.0b6
Loading...
Searching...
No Matches
esphome
components
libretiny
lt_component.h
Go to the documentation of this file.
1
#pragma once
2
3
#ifdef USE_LIBRETINY
4
5
#include "
esphome/core/component.h
"
6
#include "
esphome/core/defines.h
"
7
8
#ifdef USE_SENSOR
9
#include "
esphome/components/sensor/sensor.h
"
10
#endif
11
#ifdef USE_TEXT_SENSOR
12
#include "
esphome/components/text_sensor/text_sensor.h
"
13
#endif
14
15
namespace
esphome::libretiny
{
16
17
class
LTComponent
final :
public
Component
{
18
#ifdef USE_TEXT_SENSOR
19
SUB_TEXT_SENSOR(version)
20
#endif
21
22
public
:
23
float
get_setup_priority
()
const override
;
24
void
dump_config()
override
;
25
};
26
27
}
// namespace esphome::libretiny
28
29
#endif
// USE_LIBRETINY
esphome::Component
Definition
component.h:147
esphome::Component::get_setup_priority
virtual float get_setup_priority() const
priority of setup().
Definition
component.cpp:82
esphome::libretiny::LTComponent
Definition
lt_component.h:17
component.h
defines.h
esphome::libretiny
Definition
atexit_stubs.cpp:14
sensor.h
text_sensor.h
Generated by
1.12.0