migrate weather to icon mapper

This commit is contained in:
Johannes Braun
2022-03-20 13:54:03 +01:00
parent 59691cc591
commit fe3e0c882e
4 changed files with 35 additions and 33 deletions

View File

@@ -68,7 +68,7 @@ with open(os.path.join(__location__, "../../../apps/nspanel-lovelace-ui", "icon_
f.write(f" '{val}': {idx},\n")
f.write("}\n")
f.write("""
def get_icon(ma_name):
def get_icon_id(ma_name):
if ma_name in icons:
return icons[ma_name]
else: