1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-26 15:12:21 +01: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
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()