1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 22:24:26 +00:00

[core] Centralize component setup logging to reduce flash usage (#9885)

This commit is contained in:
J. Nick Koston
2025-07-25 09:27:03 -10:00
committed by GitHub
parent 2b87589562
commit b7ce8c116b
288 changed files with 26 additions and 460 deletions

View File

@@ -80,7 +80,6 @@ void TemplateAlarmControlPanel::dump_config() {
}
void TemplateAlarmControlPanel::setup() {
ESP_LOGCONFIG(TAG, "Running setup for '%s'", this->name_.c_str());
switch (this->restore_mode_) {
case ALARM_CONTROL_PANEL_ALWAYS_DISARMED:
this->current_state_ = ACP_STATE_DISARMED;

View File

@@ -16,7 +16,6 @@ TemplateCover::TemplateCover()
position_trigger_(new Trigger<float>()),
tilt_trigger_(new Trigger<float>()) {}
void TemplateCover::setup() {
ESP_LOGCONFIG(TAG, "Running setup for '%s'", this->name_.c_str());
switch (this->restore_mode_) {
case COVER_NO_RESTORE:
break;

View File

@@ -11,7 +11,6 @@ void TemplateSelect::setup() {
return;
std::string value;
ESP_LOGD(TAG, "Setting up");
if (!this->restore_value_) {
value = this->initial_option_;
ESP_LOGD(TAG, "State from initial: %s", value.c_str());

View File

@@ -11,8 +11,6 @@ void TemplateText::setup() {
if (this->f_.has_value())
return;
}
ESP_LOGCONFIG(TAG, "Running setup for '%s'", this->name_.c_str());
std::string value = this->initial_value_;
if (!this->pref_) {
ESP_LOGD(TAG, "State from initial: %s", value.c_str());

View File

@@ -16,7 +16,6 @@ TemplateValve::TemplateValve()
position_trigger_(new Trigger<float>()) {}
void TemplateValve::setup() {
ESP_LOGCONFIG(TAG, "Running setup for '%s'", this->name_.c_str());
switch (this->restore_mode_) {
case VALVE_NO_RESTORE:
break;