HASPmota `haspmota.get_pages()` to get the sorted list of pages (#22358)

This commit is contained in:
s-hadinger 2024-10-25 11:39:14 +02:00 committed by GitHub
parent 886221a1d6
commit 0fd16f8725
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1101 additions and 1066 deletions

View File

@ -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

View File

@ -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()