mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-23 16:04:25 +01:00
added some more alarm states #81
This commit is contained in:
@@ -43,7 +43,8 @@ icons = [
|
||||
"window-closed",
|
||||
"shield-off",
|
||||
"shield",
|
||||
"shield-lock"
|
||||
"shield-lock",
|
||||
"shield-airplane"
|
||||
]
|
||||
|
||||
|
||||
@@ -69,7 +70,7 @@ for icon_name in icons:
|
||||
icon_name_list.append(icon_name)
|
||||
|
||||
# write mapping lib for python
|
||||
with open(os.path.join(__location__, "../../../apps/nspanel-lovelace-ui", "icon_mapping.py"), 'w') as f:
|
||||
with open(os.path.join(__location__, "../../../apps/nspanel-lovelace-ui/luibackend", "icon_mapping.py"), 'w') as f:
|
||||
f.write("icons = {\n")
|
||||
for idx, val in enumerate(icon_name_list):
|
||||
f.write(f" '{val}': {idx},\n")
|
||||
|
||||
Reference in New Issue
Block a user