1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-31 07:03:55 +00:00

Streamline setup() logging (s, t, u, v, w, x, y, z) (#8930)

This commit is contained in:
Keith Burzinski
2025-05-28 14:28:41 -05:00
committed by GitHub
parent d99e3237f9
commit 8eac859bab
74 changed files with 76 additions and 79 deletions

View File

@@ -71,7 +71,7 @@ void TemplateAlarmControlPanel::dump_config() {
}
void TemplateAlarmControlPanel::setup() {
ESP_LOGCONFIG(TAG, "Setting up Template AlarmControlPanel '%s'...", this->name_.c_str());
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,7 @@ TemplateCover::TemplateCover()
position_trigger_(new Trigger<float>()),
tilt_trigger_(new Trigger<float>()) {}
void TemplateCover::setup() {
ESP_LOGCONFIG(TAG, "Setting up template cover '%s'...", this->name_.c_str());
ESP_LOGCONFIG(TAG, "Running setup for '%s'", this->name_.c_str());
switch (this->restore_mode_) {
case COVER_NO_RESTORE:
break;

View File

@@ -12,9 +12,8 @@ void TemplateText::setup() {
return;
}
std::string value;
ESP_LOGD(TAG, "Setting up Template Text Input");
value = this->initial_value_;
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());
} else {

View File

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