ESPHome 2025.5.0
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, "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
25
26} // namespace libretiny
27} // namespace esphome
28
29#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:28
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7