mirror of
https://github.com/esphome/esphome.git
synced 2026-10-01 17:00:21 +00:00
[lvgl] Use contextvars to improve lvgl scheduling (#19242)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
e111f1130c
commit
5baad05926
@@ -42,6 +42,13 @@ script:
|
||||
label:
|
||||
text: row
|
||||
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- lvgl.theme.update:
|
||||
obj:
|
||||
border_width: 2
|
||||
|
||||
lvgl:
|
||||
id: lvgl_id
|
||||
rotation: 90
|
||||
@@ -1351,6 +1358,17 @@ lvgl:
|
||||
id: checkbox_id
|
||||
text: Checkbox
|
||||
align: bottom_right
|
||||
- list:
|
||||
id: list_a
|
||||
on_add:
|
||||
- lvgl.list.add:
|
||||
id: list_b # fires list_b's on_add
|
||||
label: {text: x}
|
||||
- list:
|
||||
id: list_b
|
||||
on_add:
|
||||
- logger.log: added
|
||||
|
||||
- list:
|
||||
id: test_list_id
|
||||
align: top_right
|
||||
|
||||
Reference in New Issue
Block a user