danielperna84 / hass-configurator

Configuration UI for Home Assistant
MIT License
306 stars 168 forks source link

Allow for parens in entity friendly names #237

Closed maweki closed 8 months ago

maweki commented 1 year ago

Selects the last encountered '('-split instead of the second, allowing for parenthesis in friendly entity names.

Fixes https://github.com/home-assistant/addons/issues/2779

A bit dirty. Actual entity names should be put as data-attributes in the elements and not be extracted from the shown text, but this patch is minimally invasive.

danielperna84 commented 1 year ago

I‘m in holiday right now. I‘ll have a look at it in about 2 weeks.