mirror of https://github.com/arendst/Tasmota.git
HASPmota `haspmota.get_pages()` to get the sorted list of pages (#22358)
This commit is contained in:
parent
886221a1d6
commit
0fd16f8725
|
@ -14,6 +14,7 @@ All notable changes to this project will be documented in this file.
|
||||||
- SolaxX1 Meter mode (#22330)
|
- SolaxX1 Meter mode (#22330)
|
||||||
- DALI inverted signal configuration using GPIO DALI RX_i/TX_i
|
- DALI inverted signal configuration using GPIO DALI RX_i/TX_i
|
||||||
- Experimental support for Shelly DALI Dimmer Gen3 (See template in file xdrv_75_dali.ino)
|
- Experimental support for Shelly DALI Dimmer Gen3 (See template in file xdrv_75_dali.ino)
|
||||||
|
- HASPmota `haspmota.get_pages()` to get the sorted list of pages
|
||||||
|
|
||||||
### Breaking Changed
|
### Breaking Changed
|
||||||
|
|
||||||
|
|
|
@ -2679,6 +2679,12 @@ class HASPmota
|
||||||
return self.lvh_pages[self.lvh_page_cur_idx]
|
return self.lvh_pages[self.lvh_page_cur_idx]
|
||||||
end
|
end
|
||||||
#====================================================================
|
#====================================================================
|
||||||
|
# return an array of all pages numbers
|
||||||
|
#====================================================================
|
||||||
|
def get_pages()
|
||||||
|
return self.pages_list_sorted(nil)
|
||||||
|
end
|
||||||
|
#====================================================================
|
||||||
# return the current page being parsed with JSONL as `lvh_page` object
|
# return the current page being parsed with JSONL as `lvh_page` object
|
||||||
#====================================================================
|
#====================================================================
|
||||||
def get_page_cur_parsing()
|
def get_page_cur_parsing()
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue