[lvgl] Allow esphome::Image in lambda to update image source directly (#7624)

This commit is contained in:
guillempages authored and GitHub committed 2024-10-18 07:23:37 +11:00
1 parent 8bbe4efded
commit ef6ccddc0d
3 files changed
+17

No files matched your search

+5
View File
@@ -127,6 +127,11 @@ binary_sensor:
- platform: lvgl
name: LVGL checkbox
widget: checkbox_id
on_state:
then:
- lvgl.image.update:
id: lv_image
src: !lambda if (x) return id(cat_image); else return id(dog_image);
wifi:
ssid: SSID
+1
View File
@@ -419,6 +419,7 @@ lvgl:
spin_time: 2s
align: left_mid
- image:
id: lv_image
src: cat_image
align: top_left
y: 50