mirror of
https://github.com/esphome/esphome.git
synced 2024-12-13 08:54:54 +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
|
import esphome.config_validation as cv
|
||||||
from esphome.components import font, color
|
from esphome.components import font, color
|
||||||
from esphome.components.display import display_ns
|
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")
|
graphical_layout_ns = cg.esphome_ns.namespace("graphical_layout")
|
||||||
TextPanel = graphical_layout_ns.class_("TextPanel")
|
TextPanel = graphical_layout_ns.class_("TextPanel")
|
||||||
|
@ -13,7 +13,6 @@ CONF_FONT = "font"
|
||||||
CONF_TEXT = "text"
|
CONF_TEXT = "text"
|
||||||
CONF_TEXT_ALIGN = "text_align"
|
CONF_TEXT_ALIGN = "text_align"
|
||||||
|
|
||||||
|
|
||||||
TEXT_ALIGN = {
|
TEXT_ALIGN = {
|
||||||
"TOP_LEFT": TextAlign.TOP_LEFT,
|
"TOP_LEFT": TextAlign.TOP_LEFT,
|
||||||
"TOP_CENTER": TextAlign.TOP_CENTER,
|
"TOP_CENTER": TextAlign.TOP_CENTER,
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
namespace esphome {
|
namespace esphome {
|
||||||
namespace graphical_layout {
|
namespace graphical_layout {
|
||||||
|
|
||||||
|
|
||||||
static const char *const TAG = "textrunpanel";
|
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_X_MASK = (int) display::TextAlign::RIGHT | (int) display::TextAlign::CENTER_HORIZONTAL;
|
||||||
static const int TEXT_ALIGN_Y_MASK =
|
static const int TEXT_ALIGN_Y_MASK =
|
||||||
|
|
|
@ -2,7 +2,7 @@ import esphome.codegen as cg
|
||||||
import esphome.config_validation as cv
|
import esphome.config_validation as cv
|
||||||
from esphome.components import font, color
|
from esphome.components import font, color
|
||||||
from esphome.components.display import display_ns
|
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")
|
graphical_layout_ns = cg.esphome_ns.namespace("graphical_layout")
|
||||||
TextRunPanel = graphical_layout_ns.class_("TextRunPanel")
|
TextRunPanel = graphical_layout_ns.class_("TextRunPanel")
|
||||||
|
|
Loading…
Reference in a new issue