mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-14 17:08:17 +01:00
Update pages.py
This commit is contained in:
@@ -405,6 +405,20 @@ class LuiPagesGen(object):
|
|||||||
entityTypePanel = ""
|
entityTypePanel = ""
|
||||||
if "entityId" in mask:
|
if "entityId" in mask:
|
||||||
entityId = ""
|
entityId = ""
|
||||||
|
# change font on cardgrid
|
||||||
|
if item.font:
|
||||||
|
font = 0
|
||||||
|
if item.font == "small":
|
||||||
|
font = 0
|
||||||
|
else if item.font == "medium-icon":
|
||||||
|
font = 1
|
||||||
|
else if item.font == "medium":
|
||||||
|
font = 2
|
||||||
|
else if item.font == "large":
|
||||||
|
font = 3
|
||||||
|
else if isinstance(item.font, int):
|
||||||
|
font = item.font
|
||||||
|
icon_id += f'{icon_id}¬{font}'
|
||||||
return f"~{entityTypePanel}~{entityId}~{icon_id}~{color}~{name}~{value}"
|
return f"~{entityTypePanel}~{entityId}~{icon_id}~{color}~{name}~{value}"
|
||||||
|
|
||||||
def generate_entities_page(self, navigation, heading, items, cardType, tempUnit):
|
def generate_entities_page(self, navigation, heading, items, cardType, tempUnit):
|
||||||
|
|||||||
Reference in New Issue
Block a user