1
0
mirror of https://github.com/esphome/esphome.git synced 2025-01-18 12:05:41 +00:00

[lvgl] Fix image mode property (Bugfix) (#7938)

This commit is contained in:
Clyde Stubbs 2024-12-10 12:23:30 +11:00 committed by GitHub
parent 5a92e24662
commit 517f659da8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -79,7 +79,7 @@ class ImgType(WidgetType):
if CONF_ANTIALIAS in config:
lv.img_set_antialias(w.obj, config[CONF_ANTIALIAS])
if mode := config.get(CONF_MODE):
lv.img_set_mode(w.obj, mode)
await w.set_property("size_mode", mode)
img_spec = ImgType()

View File

@ -451,6 +451,7 @@ lvgl:
src: cat_image
align: top_left
y: "50"
mode: real
- tileview:
id: tileview_id
scrollbar_mode: active
@ -647,6 +648,7 @@ lvgl:
grid_cell_row_pos: 0
grid_cell_column_pos: 0
src: !lambda return dog_image;
mode: virtual
on_click:
then:
- lvgl.tabview.select: