From d7b512fc93875c14c35ea020414d694ad45f9eac Mon Sep 17 00:00:00 2001 From: Michael Davidson Date: Wed, 3 Jan 2024 23:36:18 +1100 Subject: [PATCH] Fix clang-tidy issues --- esphome/components/graphical_layout/text_panel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/graphical_layout/text_panel.cpp b/esphome/components/graphical_layout/text_panel.cpp index 74e4ddc5db..b95c886494 100644 --- a/esphome/components/graphical_layout/text_panel.cpp +++ b/esphome/components/graphical_layout/text_panel.cpp @@ -21,10 +21,10 @@ void TextPanel::dump_config(int indent_depth, int additional_level_depth) { LOG_STR_ARG(display::text_align_to_string(this->text_align_))); ESP_LOGCONFIG(TAG, "%*sText: %s", indent_depth, "", text.c_str()); if (this->sensor_ != nullptr) { - ESP_LOGCONFIG(TAG, "%*sSensor: %s", indent_depth, "", this->sensor_->get_name()); + ESP_LOGCONFIG(TAG, "%*sSensor: %s", indent_depth, "", this->sensor_->get_name().c_str()); } if (this->text_sensor_ != nullptr) { - ESP_LOGCONFIG(TAG, "%*sText Sensor: %s", indent_depth, "", this->text_sensor_->get_name()); + ESP_LOGCONFIG(TAG, "%*sText Sensor: %s", indent_depth, "", this->text_sensor_->get_name().c_str()); } ESP_LOGCONFIG(TAG, "%*sHas Text Formatter: %s", indent_depth, "", YESNO(!this->text_formatter_.has_value())); }