From a083240e1203d02ad7680acb320afd1e95e2f984 Mon Sep 17 00:00:00 2001 From: Michael Davidson Date: Wed, 3 Jan 2024 17:01:02 +1100 Subject: [PATCH] Apply clang-tidy fixes --- esphome/components/graphical_layout/text_panel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/graphical_layout/text_panel.cpp b/esphome/components/graphical_layout/text_panel.cpp index 9e1b7c4d2b..93437451f0 100644 --- a/esphome/components/graphical_layout/text_panel.cpp +++ b/esphome/components/graphical_layout/text_panel.cpp @@ -31,7 +31,7 @@ void TextPanel::dump_config(int indent_depth, int additional_level_depth) { void TextPanel::setup_complete() { if (!this->text_formatter_.has_value()) { - this->text_formatter_ = [this](const std::string string) { return string; }; + this->text_formatter_ = [](const std::string& string) { return string; }; } if (this->sensor_ != nullptr) {