diff --git a/esphome/components/graphical_layout/text_panel.py b/esphome/components/graphical_layout/text_panel.py index 9250a8c8e2..995a435b6b 100644 --- a/esphome/components/graphical_layout/text_panel.py +++ b/esphome/components/graphical_layout/text_panel.py @@ -2,7 +2,7 @@ import esphome.codegen as cg import esphome.config_validation as cv from esphome.components import font, color from esphome.components.display import display_ns -# from esphome.const import CONF_FOREGROUND_COLOR, CONF_BACKGROUND_COLOR +from esphome.const import CONF_FOREGROUND_COLOR, CONF_BACKGROUND_COLOR graphical_layout_ns = cg.esphome_ns.namespace("graphical_layout") TextPanel = graphical_layout_ns.class_("TextPanel") @@ -13,7 +13,6 @@ CONF_FONT = "font" CONF_TEXT = "text" CONF_TEXT_ALIGN = "text_align" - TEXT_ALIGN = { "TOP_LEFT": TextAlign.TOP_LEFT, "TOP_CENTER": TextAlign.TOP_CENTER, diff --git a/esphome/components/graphical_layout/text_run_panel.cpp b/esphome/components/graphical_layout/text_run_panel.cpp index 66b096daf3..6378517223 100644 --- a/esphome/components/graphical_layout/text_run_panel.cpp +++ b/esphome/components/graphical_layout/text_run_panel.cpp @@ -7,7 +7,6 @@ namespace esphome { namespace graphical_layout { - static const char *const TAG = "textrunpanel"; static const int TEXT_ALIGN_X_MASK = (int) display::TextAlign::RIGHT | (int) display::TextAlign::CENTER_HORIZONTAL; static const int TEXT_ALIGN_Y_MASK = diff --git a/esphome/components/graphical_layout/text_run_panel.py b/esphome/components/graphical_layout/text_run_panel.py index 5b46b36812..35021a7e9b 100644 --- a/esphome/components/graphical_layout/text_run_panel.py +++ b/esphome/components/graphical_layout/text_run_panel.py @@ -2,7 +2,7 @@ import esphome.codegen as cg import esphome.config_validation as cv from esphome.components import font, color from esphome.components.display import display_ns -from esphome.const import CONF_ID#, CONF_FOREGROUND_COLOR, CONF_BACKGROUND_COLOR +from esphome.const import CONF_ID, CONF_FOREGROUND_COLOR, CONF_BACKGROUND_COLOR graphical_layout_ns = cg.esphome_ns.namespace("graphical_layout") TextRunPanel = graphical_layout_ns.class_("TextRunPanel")