hass-fontawesome icon indicating copy to clipboard operation
hass-fontawesome copied to clipboard

Appears that custom icons with a hyphen (-) in their name do not load

Open Teku16 opened this issue 3 years ago • 3 comments

I tried to upload a pro icon to the /custom_icons folder, and struggled for a bit before renaming it

Before: tree-christmas.svg (nothing loaded) After: christmastree.svg (loads fine)

I am unsure if I botched something or not, but I just installed master and restarted HA

Teku16 avatar Oct 14 '21 17:10 Teku16

can confirm this as well. Fresh HA installation and new user of this plugin

jdubbs4051 avatar Dec 01 '21 23:12 jdubbs4051

Same here, but also occurs when using hyphenated free fonts from the Font Awesome library

For example, boxes-packing does not work.

GitHubGoody avatar May 16 '22 19:05 GitHubGoody

Issue still present, confirming here as well. Seems development has stopped.

Milithor avatar Oct 25 '22 20:10 Milithor

Filter on free icons in the gallery, they will work, even with a hyphen

TheFes avatar Dec 03 '22 19:12 TheFes

Filter on free icons in the gallery, they will work, even with a hyphen

Sure? Because here that don't work either.

For example: fas:building returns the icon of a building but fas:building-shield does not return the building with shield.

There is a list of icons that work: https://github.com/thomasloven/hass-fontawesome/tree/master/custom_components/fontawesome/data/regular

EvertJob avatar Dec 09 '22 12:12 EvertJob

Well, I didn't check all of them, but for the ones I tested with the free icons with hyphen worked. So it is not caused by the hyphen.

TheFes avatar Dec 09 '22 13:12 TheFes

Well, I didn't check all of them, but for the ones I tested with the free icons with hyphen worked. So it is not caused by the hyphen.

That's right!

The full folder is here: https://github.com/thomasloven/hass-fontawesome/tree/master/custom_components/fontawesome/data/solid

I've people would like to add there own icons: Place them in the config/custom_components/fontawesome/data/solid folder. Just give them a logical name and it's possible to use them!

EvertJob avatar Dec 09 '22 13:12 EvertJob

Cannot reproduce bild

boxes-packing and building-shield were added in Fontawesome 6.0 and therefore were not included in this pack before today.

thomasloven avatar Oct 14 '23 20:10 thomasloven