mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-26 06:02:14 +01:00
Update pages.py
This commit is contained in:
@@ -410,13 +410,13 @@ class LuiPagesGen(object):
|
|||||||
font = 0
|
font = 0
|
||||||
if item.font == "small":
|
if item.font == "small":
|
||||||
font = 0
|
font = 0
|
||||||
else if item.font == "medium-icon":
|
elif item.font == "medium-icon":
|
||||||
font = 1
|
font = 1
|
||||||
else if item.font == "medium":
|
elif item.font == "medium":
|
||||||
font = 2
|
font = 2
|
||||||
else if item.font == "large":
|
elif item.font == "large":
|
||||||
font = 3
|
font = 3
|
||||||
else if isinstance(item.font, int):
|
elif isinstance(item.font, int):
|
||||||
font = item.font
|
font = item.font
|
||||||
icon_id += f'{icon_id}¬{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}"
|
||||||
|
|||||||
Reference in New Issue
Block a user