1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-01 10:52:19 +01:00

[lvgl] Implement lvgl.page.is_showing: condition (#8055)

This commit is contained in:
Clyde Stubbs
2025-01-13 05:53:26 +11:00
committed by GitHub
parent bd17ee8e33
commit 109d737d5d
5 changed files with 67 additions and 10 deletions

View File

@@ -138,6 +138,11 @@ lvgl:
- logger.log: page loaded
- lvgl.widget.focus:
action: restore
- if:
condition:
lvgl.page.is_showing: page1
then:
logger.log: "Yes, page1 showing"
on_unload:
- logger.log: page unloaded
- lvgl.widget.focus: mark