Skip to content

Commit

Permalink
fixes #82
Browse files Browse the repository at this point in the history
  • Loading branch information
joBr99 authored Mar 27, 2022
1 parent 33afd31 commit f78e03e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/nspanel-lovelace-ui/luibackend/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ def get_items(self):

def get_all_item_names(self, recursive=True):
items = []
# current page
if type(self.data) is dict:
items.append(self.data.get("item", next(iter(self.data))))
else:
items.append(self.data)
# childs of page
for i in self.childs:
if len(i.childs) > 0:
if recursive:
Expand Down

0 comments on commit f78e03e

Please sign in to comment.