diff --git a/apps/nspanel-lovelace-ui/luibackend/config.py b/apps/nspanel-lovelace-ui/luibackend/config.py index fc2b5153..367d7e55 100644 --- a/apps/nspanel-lovelace-ui/luibackend/config.py +++ b/apps/nspanel-lovelace-ui/luibackend/config.py @@ -77,6 +77,12 @@ class PageNode(object): 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: