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:
		| @@ -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; | ||||
|   | ||||
| @@ -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; | ||||
|   | ||||
| @@ -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 { | ||||
|   | ||||
| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user