mirror of
https://github.com/esphome/esphome.git
synced 2026-06-02 11:08:06 +08:00
[lvgl] Fix event for binary sensor (#11636)
This commit is contained in:
committed by
Jesse Hills
parent
51745d1d5e
commit
2f5f1da16f
@@ -31,7 +31,7 @@ async def to_code(config):
|
|||||||
lvgl_static.add_event_cb(
|
lvgl_static.add_event_cb(
|
||||||
widget.obj,
|
widget.obj,
|
||||||
await pressed_ctx.get_lambda(),
|
await pressed_ctx.get_lambda(),
|
||||||
LV_EVENT.PRESSING,
|
LV_EVENT.PRESSED,
|
||||||
LV_EVENT.RELEASED,
|
LV_EVENT.RELEASED,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user