ESPHome
2024.11.1
esphome
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,
"LibreTiny:"
);
14
ESP_LOGCONFIG(TAG,
" Version: %s"
, LT_BANNER_STR + 10);
15
ESP_LOGCONFIG(TAG,
" Loglevel: %u"
, LT_LOGLEVEL);
16
17
#ifdef USE_TEXT_SENSOR
18
if
(this->
version_
!=
nullptr
) {
19
this->
version_
->
publish_state
(LT_BANNER_STR + 10);
20
}
21
#endif // USE_TEXT_SENSOR
22
}
23
24
float
LTComponent::get_setup_priority
()
const
{
return
setup_priority::LATE
; }
25
26
}
// namespace libretiny
27
}
// namespace esphome
28
29
#endif // USE_LIBRETINY
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:28
esphome::text_sensor::TextSensor::publish_state
void publish_state(const std::string &state)
Definition:
text_sensor.cpp:9
esphome::libretiny::LTComponent::get_setup_priority
float get_setup_priority() const override
Definition:
lt_component.cpp:24
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
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
log.h
Generated by
1.8.13