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

@@ -36,7 +36,7 @@ icons = {
'battery-medium': 34,
}
def get_icon(ma_name):
def get_icon_id(ma_name):
if ma_name in icons:
return icons[ma_name]
else: