From 66844386495037dfbd4652b304c969d739f36335 Mon Sep 17 00:00:00 2001 From: Dave T <17680170+davet2001@users.noreply.github.com> Date: Sat, 12 Oct 2024 22:33:02 +0000 Subject: [PATCH] Fix clang-tidy --- esphome/components/display/display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/display/display.cpp b/esphome/components/display/display.cpp index 0886f95111..e5bae79479 100644 --- a/esphome/components/display/display.cpp +++ b/esphome/components/display/display.cpp @@ -346,7 +346,7 @@ void Display::print(int x, int y, BaseFont *font, Color color, TextAlign align, void Display::print(int x, int y, int width, int height, BaseFont *font, Color color, TextAlign align, const char *text, Color background, float line_height, bool wrap) { int x_start, y_start; - if (wrap == false) { + if (!wrap) { this->get_text_bounds(x, y, text, font, align, &x_start, &y_start, &width, &height); font->print(x_start, y_start, this, color, text, background); } else {