mirror of
https://github.com/esphome/esphome.git
synced 2025-09-04 12:22:20 +01:00
[text] Move to use `text_schema(..)
instead of
TEXT_SCHEMA
` (#8727)
This commit is contained in:
@@ -19,9 +19,8 @@ from ..widgets import get_widgets, wait_for_widgets
|
||||
|
||||
LVGLText = lvgl_ns.class_("LVGLText", text.Text)
|
||||
|
||||
CONFIG_SCHEMA = text.TEXT_SCHEMA.extend(
|
||||
CONFIG_SCHEMA = text.text_schema(LVGLText).extend(
|
||||
{
|
||||
cv.GenerateID(): cv.declare_id(LVGLText),
|
||||
cv.Required(CONF_WIDGET): cv.use_id(LvText),
|
||||
}
|
||||
)
|
||||
|
Reference in New Issue
Block a user