1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-06 21:32:21 +01:00

[lvgl] Roller and Dropdown enhancements; (#7608)

This commit is contained in:
Clyde Stubbs
2024-10-17 12:03:48 +11:00
committed by GitHub
parent 5ad68e926d
commit fcfc76b01b
16 changed files with 218 additions and 107 deletions

View File

@@ -216,7 +216,7 @@ def automation_schema(typ: LvType):
events = df.LV_EVENT_TRIGGERS + (CONF_ON_VALUE,)
else:
events = df.LV_EVENT_TRIGGERS
args = [typ.get_arg_type()] if isinstance(typ, LvType) else []
args = typ.get_arg_type() if isinstance(typ, LvType) else []
args.append(lv_event_t_ptr)
return {
cv.Optional(event): validate_automation(