ESPHome
2025.5.0
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
{
16
namespace
libretiny {
17
18
class
LTComponent
:
public
Component
{
19
public
:
20
float
get_setup_priority
()
const override
;
21
void
dump_config
()
override
;
22
23
#ifdef USE_TEXT_SENSOR
24
void
set_version_sensor
(
text_sensor::TextSensor
*version) {
version_
= version; }
25
#endif
// USE_TEXT_SENSOR
26
27
protected
:
28
#ifdef USE_TEXT_SENSOR
29
text_sensor::TextSensor
*
version_
{
nullptr
};
30
#endif
// USE_TEXT_SENSOR
31
};
32
33
}
// namespace libretiny
34
}
// namespace esphome
35
36
#endif
// USE_LIBRETINY
esphome::Component
Definition
component.h:70
esphome::libretiny::LTComponent
Definition
lt_component.h:18
esphome::libretiny::LTComponent::version_
text_sensor::TextSensor * version_
Definition
lt_component.h:29
esphome::libretiny::LTComponent::set_version_sensor
void set_version_sensor(text_sensor::TextSensor *version)
Definition
lt_component.h:24
esphome::libretiny::LTComponent::dump_config
void dump_config() override
Definition
lt_component.cpp:12
esphome::libretiny::LTComponent::get_setup_priority
float get_setup_priority() const override
Definition
lt_component.cpp:24
esphome::text_sensor::TextSensor
Definition
text_sensor.h:34
component.h
defines.h
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
sensor.h
text_sensor.h
Generated by
1.12.0