From cf559ead56f85981608532d7b519805d3e162140 Mon Sep 17 00:00:00 2001 From: Michael Davidson Date: Sun, 31 Dec 2023 12:05:51 +1100 Subject: [PATCH] More ci-custom + clang-format fixes --- esphome/components/graphical_layout/fixed_dimension_panel.cpp | 2 +- esphome/components/graphical_layout/layout_item.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/esphome/components/graphical_layout/fixed_dimension_panel.cpp b/esphome/components/graphical_layout/fixed_dimension_panel.cpp index 6f37d0c18a..634acfbb98 100644 --- a/esphome/components/graphical_layout/fixed_dimension_panel.cpp +++ b/esphome/components/graphical_layout/fixed_dimension_panel.cpp @@ -18,7 +18,7 @@ void FixedDimensionPanel::dump_config(int indent_depth, int additional_level_dep ESP_LOGCONFIG(TAG, "%*sWidth: %i", indent_depth, "", this->width_.value()); } -if (this->height_.value() < 0) { + if (this->height_.value() < 0) { ESP_LOGCONFIG(TAG, "%*sHeight: UNSET (Will use %s's height)", indent_depth, "", this->unset_height_uses_display_height_ ? "DISPLAY" : "CHILD"); } else { diff --git a/esphome/components/graphical_layout/layout_item.h b/esphome/components/graphical_layout/layout_item.h index daec813682..0b7a6bf8bb 100644 --- a/esphome/components/graphical_layout/layout_item.h +++ b/esphome/components/graphical_layout/layout_item.h @@ -1,9 +1,9 @@ #pragma once #include "esphome/core/color.h" +#include "esphome/core/log.h" namespace esphome { -struct LogString; namespace display { class Display; class Rect; @@ -86,7 +86,7 @@ class LayoutItem { /** Dumps the base properties of the LayoutItem. Should be called by implementors dump_config() * - * param[in] tag: Tag to pass to ESP_LOGCONFIG + * param[in] tag: Tag to pass to the LOGCONFIG method * param[in] indent_depth: Depth to indent the config */ void dump_config_base_properties(const char *tag, int indent_depth);