diff --git a/esphome/components/graphical_layout/text_run_panel.cpp b/esphome/components/graphical_layout/text_run_panel.cpp index 4ea4e9327d..88c8fda9bd 100644 --- a/esphome/components/graphical_layout/text_run_panel.cpp +++ b/esphome/components/graphical_layout/text_run_panel.cpp @@ -97,7 +97,7 @@ std::vector> TextRunPanel::split_runs_into_wo can_wrap_at_args.offset = i; prop.can_wrap = this->can_wrap_at_character_.value(can_wrap_at_args); - if ((current_text_run == nullptr) || (current_text_run->run_properties.is_equivalent(prop) == false)) { + if ((current_text_run == nullptr) || (!current_text_run->run_properties.is_equivalent(prop))) { current_text_run = std::make_shared(run, prop); runs.push_back(current_text_run); }