ESPHome 2025.9.0-dev
Loading...
Searching...
No Matches
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
7namespace esphome {
8namespace libretiny {
9
10static const char *const TAG = "lt.component";
11
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
27
28} // namespace libretiny
29} // namespace esphome
30
31#endif // USE_LIBRETINY
text_sensor::TextSensor * version_
float get_setup_priority() const override
void publish_state(const std::string &state)
const float LATE
For components that should be initialized at the very end of the setup process.
Definition component.cpp:59
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7