mirror of
https://github.com/esphome/esphome.git
synced 2024-12-12 08:24:55 +01:00
More clang/ling fixes
This commit is contained in:
parent
8cb27b5b78
commit
f749d26353
7 changed files with 49 additions and 48 deletions
|
@ -23,6 +23,7 @@ CONF_ITEM_TYPE = "type"
|
|||
|
||||
BASE_ITEM_SCHEMA = cv.Schema({})
|
||||
|
||||
|
||||
def item_type_schema(value):
|
||||
return ITEM_TYPE_SCHEMA(value)
|
||||
|
||||
|
@ -32,7 +33,9 @@ ITEM_TYPE_SCHEMA = cv.typed_schema(
|
|||
text_panel.CONF_TYPE: BASE_ITEM_SCHEMA.extend(
|
||||
{
|
||||
cv.GenerateID(): cv.declare_id(text_panel.TextPanel),
|
||||
cv.Optional(text_panel.CONF_ITEM_PADDING, default=0): cv.templatable(cv.int_),
|
||||
cv.Optional(text_panel.CONF_ITEM_PADDING, default=0): cv.templatable(
|
||||
cv.int_
|
||||
),
|
||||
cv.Required(text_panel.CONF_FONT): cv.use_id(font.Font),
|
||||
cv.Optional(text_panel.CONF_FOREGROUND_COLOR): cv.use_id(
|
||||
color.ColorStruct
|
||||
|
@ -64,7 +67,7 @@ ITEM_TYPE_SCHEMA = cv.typed_schema(
|
|||
cv.ensure_list(item_type_schema), cv.Length(min=1)
|
||||
),
|
||||
}
|
||||
)
|
||||
),
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#include "esphome/components/display/display.h"
|
||||
#include "esphome/core/log.h"
|
||||
|
||||
|
||||
namespace esphome {
|
||||
namespace graphical_layout {
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import esphome.codegen as cg
|
||||
from esphome.components import font, color
|
||||
from esphome.const import CONF_ID
|
||||
|
||||
graphical_layout_ns = cg.esphome_ns.namespace("graphical_layout")
|
||||
|
|
Loading…
Reference in a new issue