[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 Jesse Hills
parent a5dc4b0fce
commit 0b047c334d
2 changed files with 3 additions and 0 deletions

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

View File

@@ -20,6 +20,8 @@ lvgl:
- id: lvgl_0
default_font: space16
displays: sdl0
top_layer:
- id: lvgl_1
displays: sdl1
on_idle: