1
0
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:
Jesse Hills
2025-05-09 18:24:34 +12:00
committed by GitHub
parent 8a90ce882a
commit ca221d6cb2
4 changed files with 41 additions and 12 deletions

View File

@@ -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),
}
)