This commit is contained in:
joBr99
2023-11-23 20:47:24 +01:00
parent 1b4c435fab
commit 254aa2d043
4 changed files with 4 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-config
name: NSPanel Lovelace UI Addon
version: "4.7.29"
version: "4.7.30"
slug: nspanel-lovelace-ui
description: NSPanel Lovelace UI Addon
services:

View File

@@ -255,7 +255,7 @@ class HACard(panel_cards.Card):
'color': [255, 255, 255],
}, self.panel
).render()[1:]
if not self.iid_prev and not self.iid_next and len(self.panel.cards) != 1:
if self.hidden
leftBtn = panel_cards.Entity(self.locale,
{
'entity': f'navigate.UP',

View File

@@ -53,6 +53,7 @@ class LovelaceUIPanel:
# generate cards for input settings
for c in self.settings.get("hiddenCards", []):
iid, card = card_factory(self.settings["locale"], c, self)
card.hidden = True
self.hidden_cards[iid] = card
# collect nav keys of cards
if card.navigate_key:

View File

@@ -14,6 +14,7 @@ class Card:
self.type = config.get("type", "")
self.config = config
self.panel = panel
self.hidden = False
def render(self):
raise NotImplementedError