diff --git a/esphome/components/mcp4461/output/mcp4461_output.cpp b/esphome/components/mcp4461/output/mcp4461_output.cpp index 928a14d811..aceca5307c 100644 --- a/esphome/components/mcp4461/output/mcp4461_output.cpp +++ b/esphome/components/mcp4461/output/mcp4461_output.cpp @@ -11,7 +11,7 @@ static const char *const TAG = "mcp4461.output"; void Mcp4461Wiper::write_state(float state) { if (this->parent_->is_failed()) { - ESP_LOGW(TAG, "%s", LOG_STR_ARG(LOG_PARENT_FAILED_STR)); + ESP_LOGE(TAG, "%s", LOG_STR_ARG(LOG_PARENT_FAILED_STR)); return; } uint8_t wiper_idx = static_cast(this->wiper_); @@ -33,7 +33,7 @@ uint16_t Mcp4461Wiper::get_wiper_level() { return this->parent_->get_wiper_level void Mcp4461Wiper::save_level() { if (this->parent_->is_failed()) { - ESP_LOGW(TAG, "Parent MCP4461 component has failed! Aborting"); + ESP_LOGE(TAG, "%s", LOG_STR_ARG(LOG_PARENT_FAILED_STR)); return; } uint8_t wiper_idx = static_cast(this->wiper_); @@ -49,7 +49,7 @@ void Mcp4461Wiper::save_level() { void Mcp4461Wiper::enable_wiper() { if (this->parent_->is_failed()) { - ESP_LOGW(TAG, "Parent MCP4461 component has failed! Aborting"); + ESP_LOGE(TAG, "%s", LOG_STR_ARG(LOG_PARENT_FAILED_STR)); return; } uint8_t wiper_idx = static_cast(this->wiper_); @@ -62,7 +62,7 @@ void Mcp4461Wiper::enable_wiper() { void Mcp4461Wiper::disable_wiper() { if (this->parent_->is_failed()) { - ESP_LOGW(TAG, "Parent MCP4461 component has failed! Aborting"); + ESP_LOGE(TAG, "%s", LOG_STR_ARG(LOG_PARENT_FAILED_STR)); return; } uint8_t wiper_idx = static_cast(this->wiper_); @@ -75,7 +75,7 @@ void Mcp4461Wiper::disable_wiper() { void Mcp4461Wiper::increase_wiper() { if (this->parent_->is_failed()) { - ESP_LOGW(TAG, "Parent MCP4461 component has failed! Aborting"); + ESP_LOGE(TAG, "%s", LOG_STR_ARG(LOG_PARENT_FAILED_STR)); return; } uint8_t wiper_idx = static_cast(this->wiper_); @@ -90,7 +90,7 @@ void Mcp4461Wiper::increase_wiper() { void Mcp4461Wiper::decrease_wiper() { if (this->parent_->is_failed()) { - ESP_LOGW(TAG, "Parent MCP4461 component has failed! Aborting"); + ESP_LOGE(TAG, "%s", LOG_STR_ARG(LOG_PARENT_FAILED_STR)); return; } uint8_t wiper_idx = static_cast(this->wiper_); @@ -105,7 +105,7 @@ void Mcp4461Wiper::decrease_wiper() { void Mcp4461Wiper::enable_terminal(char terminal) { if (this->parent_->is_failed()) { - ESP_LOGW(TAG, "Parent MCP4461 component has failed! Aborting"); + ESP_LOGE(TAG, "%s", LOG_STR_ARG(LOG_PARENT_FAILED_STR)); return; } uint8_t wiper_idx = static_cast(this->wiper_); @@ -118,7 +118,7 @@ void Mcp4461Wiper::enable_terminal(char terminal) { void Mcp4461Wiper::disable_terminal(char terminal) { if (this->parent_->is_failed()) { - ESP_LOGW(TAG, "Parent MCP4461 component has failed! Aborting"); + ESP_LOGE(TAG, "%s", LOG_STR_ARG(LOG_PARENT_FAILED_STR)); return; } uint8_t wiper_idx = static_cast(this->wiper_);