1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-01 19:02:18 +01:00

[lvgl] Add refresh action to re-evaluate initial widget properties (#8675)

This commit is contained in:
Clyde Stubbs
2025-05-05 13:26:16 +10:00
committed by GitHub
parent c7523ace78
commit 0b032e5c19
3 changed files with 61 additions and 4 deletions

View File

@@ -212,7 +212,7 @@ lvgl:
- animimg:
height: 60
id: anim_img
src: [cat_image, dog_image]
src: !lambda "return {dog_image, cat_image};"
repeat_count: 10
duration: 1s
auto_start: true
@@ -224,6 +224,7 @@ lvgl:
id: anim_img
src: !lambda "return {dog_image, cat_image};"
duration: 2s
- lvgl.widget.refresh: anim_img
- label:
on_boot:
lvgl.label.update: