fix nav icon overwrite

* Fixes typo

The logic doesn't quite work because if icon is a dict then it tries to call get_icon_id which expects a string icon.

* Wrong code committed - my bad

* Update icons.py

* Update pages.py

Co-authored-by: Johannes <johannes+develop+github@braun-rheingau.de>
This commit is contained in:
illuzn
2022-06-22 03:02:32 +09:30
committed by GitHub
parent 3e3022b212
commit 9074947117
2 changed files with 2 additions and 2 deletions

View File

@@ -77,7 +77,7 @@ cover_mapping = {
def map_to_mdi_name(ha_type, state=None, device_class="_", cardType=None):
if ha_type == "weather":
return weather_mapping[state] if state in weather_mapping else "alert-circle-outline"
elif ha_type == "button":
elif ha_type in ["button", "navigate"]:
return "gesture-tap-button"
elif ha_type == "scene":
return "palette"