mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 06:33:51 +00:00
[lvgl] Allow esphome::Image in lambda to update image source directly (#7624)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user