[lvgl] Fix crash with unconfigured top_layer (#13846)

This commit is contained in:
Clyde Stubbs
2026-02-09 13:53:43 +11:00
committed by GitHub
parent 28b9487b25
commit 756f1c6b7e
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -436,6 +436,7 @@ def container_schema(widget_type: WidgetType, extras=None):
schema = schema.extend(widget_type.schema)
def validator(value):
value = value or {}
return append_layout_schema(schema, value)(value)
return validator
+2
View File
@@ -20,6 +20,8 @@ lvgl:
- id: lvgl_0
default_font: space16
displays: sdl0
top_layer:
- id: lvgl_1
displays: sdl1
on_idle: