File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -194,6 +194,32 @@ sensor:
194194 update_interval: 10s
195195` ` `
196196
197+ LVGL-style configuration hierarchies are also supported :
198+
199+ ` ` ` yaml
200+ # In interface.yaml
201+ lvgl:
202+ pages:
203+ - id: main_page
204+ widgets:
205+ - label:
206+ id: title_label
207+ text: "Main Page"
208+ ` ` `
209+
210+ ` ` ` yaml
211+ packages:
212+ - !include interface.yaml
213+ lvgl:
214+ pages:
215+ - id: !extend main_page
216+ widgets:
217+ - label:
218+ id: !extend title_label
219+ text: "New Title"
220+ text_color: red
221+ ` ` `
222+
197223`!extend` also works with substitutions and jinja :
198224
199225` ` ` yaml
@@ -235,6 +261,19 @@ sensor:
235261 - id: !remove uptime_sensor
236262` ` `
237263
264+ Remove an item in a LVGL-style configuration :
265+
266+ ` ` ` yaml
267+ packages:
268+ - !include interface.yaml # see above
269+ lvgl:
270+ pages:
271+ - id: !extend main_page
272+ widgets:
273+ - label:
274+ id: !remove title_label
275+ ` ` `
276+
238277To remove captive portal for a specific device :
239278
240279` ` ` yaml
You can’t perform that action at this time.
0 commit comments