ESPHome
2025.9.0-dev
Loading...
Searching...
No Matches
esphome
components
libretiny
lt_component.cpp
Go to the documentation of this file.
1
#include "
lt_component.h
"
2
3
#ifdef USE_LIBRETINY
4
5
#include "
esphome/core/log.h
"
6
7
namespace
esphome
{
8
namespace
libretiny {
9
10
static
const
char
*
const
TAG =
"lt.component"
;
11
12
void
LTComponent::dump_config
() {
13
ESP_LOGCONFIG(TAG,
14
"LibreTiny:\n"
15
" Version: %s\n"
16
" Loglevel: %u"
,
17
LT_BANNER_STR + 10, LT_LOGLEVEL);
18
19
#ifdef USE_TEXT_SENSOR
20
if
(this->
version_
!=
nullptr
) {
21
this->
version_
->
publish_state
(LT_BANNER_STR + 10);
22
}
23
#endif
// USE_TEXT_SENSOR
24
}
25
26
float
LTComponent::get_setup_priority
()
const
{
return
setup_priority::LATE
; }
27
28
}
// namespace libretiny
29
}
// namespace esphome
30
31
#endif
// USE_LIBRETINY
esphome::libretiny::LTComponent::version_
text_sensor::TextSensor * version_
Definition
lt_component.h:29
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:26
esphome::text_sensor::TextSensor::publish_state
void publish_state(const std::string &state)
Definition
text_sensor.cpp:9
log.h
lt_component.h
esphome::setup_priority::LATE
const float LATE
For components that should be initialized at the very end of the setup process.
Definition
component.cpp:59
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
Generated by
1.12.0