andrey-git / home-assistant-customizer

Companion component for home-assistant CustomUI
MIT License
32 stars 32 forks source link

Editing icon #2

Closed cogneato closed 6 years ago

cogneato commented 6 years ago

When editing an icon and saving, the page refreshes to show "mdi:mdi:icon-name" which implies that mdi isn't needed and is being duplicated. If the extra mdi is removed, the edit will not be saved properly.

gohassgo commented 6 years ago

The icon field has "mdi:" fixed, implying that you only need to enter an icon name. Doing so only add the icon name to /config/customize.yaml, like: icon: lightbulb The icon of course does not appear. Entering "mdi:[icon_name]" in the field works and the icon is shown. This results in mdi:mdi:icon appearing in the customizer field, but enters correctly in customize.yaml. icon: mdi:lightbulb

andrey-git commented 6 years ago

This was fixed by https://github.com/home-assistant/home-assistant-polymer/pull/423

cogneato commented 6 years ago

Just saw the .53.1 fix and previous reports of the same issue. Hassio user here and a little behind, sorry.