implement navigation up

This commit is contained in:
joBr99
2023-11-23 19:12:30 +01:00
parent 9cc31b6e5b
commit 2816fa88e4
2 changed files with 17 additions and 5 deletions

View File

@@ -246,6 +246,14 @@ class HACard(panel_cards.Card):
'color': [255, 255, 255],
}, self.panel
).render()[1:]
if not self.iid_prev and not self.iid_next:
leftBtn = panel_cards.Entity(self.locale,
{
'entity': f'navigate.UP',
'icon': 'mdi:arrow-left-bold',
'color': [255, 255, 255],
}, self.panel
).render()[1:]
result = f"{leftBtn}~{rightBtn}"
return result