Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
joBr99 committed Nov 23, 2023
1 parent 1b4c435 commit 254aa2d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nspanel-lovelace-ui/config.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def gen_nav(self):
'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',
Expand Down
1 change: 1 addition & 0 deletions nspanel-lovelace-ui/rootfs/usr/bin/mqtt-manager/panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def __init__(self, mqtt_client_from_manager, name_panel, settings_panel):
# 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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def __init__(self, locale, config, panel=None):
self.type = config.get("type", "")
self.config = config
self.panel = panel
self.hidden = False

def render(self):
raise NotImplementedError
Expand Down

0 comments on commit 254aa2d

Please sign in to comment.