[lvgl] Fix arc indicator widget not registered in widget_map (#14986)

This commit is contained in:
Javier Peletier
2026-03-20 21:35:41 +01:00
committed by GitHub
parent 12b3aec567
commit 5a9977cf5c
2 changed files with 12 additions and 2 deletions

View File

@@ -406,7 +406,7 @@ class MeterType(WidgetType):
lv.scale_section_set_style(
tvar, LV_PART.MAIN, await arc_style.get_var()
)
lw = Widget(tvar, arc_indicator_type)
lw = Widget.create(iid, tvar, arc_indicator_type)
await set_indicator_values(lw, v)
if t == CONF_TICK_STYLE:

View File

@@ -37,7 +37,11 @@ lvgl:
on_resume:
logger.log: LVGL has resumed
on_boot:
logger.log: LVGL has started
- logger.log: LVGL has started
- lvgl.indicator.update:
id: meter_arc_indicator
start_value: 0
end_value: 180
bg_color: light_blue
disp_bg_color: color_id
disp_bg_image: cat_image
@@ -1110,6 +1114,12 @@ lvgl:
color: 0xA0A0A0
length: 80%
opa: 0%
- arc:
id: meter_arc_indicator
color: 0xFF0000
width: 6
start_value: 0
end_value: 360
- id: page3
layout: Horizontal
pad_all: 6px