mirror of
https://github.com/esphome/esphome.git
synced 2024-12-12 08:24:55 +01:00
Build fixes
This commit is contained in:
parent
409ba147a3
commit
eb00e8982d
3 changed files with 2 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -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 =
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue