enkama / hass-variables

Home Assistant variables component
89 stars 12 forks source link

Adding Variables removes apostrophes #84

Closed seanmccabe closed 1 year ago

seanmccabe commented 1 year ago

Had an interesting one when naming a variable "Wonderland's War". Upon saving the apostrophe was removed, making it "Wonderlands War". This then broke a couple of my automations relying on the name.

The apostrophe was there when it was imported from yaml, but as I had to recreate it, upon doing this using the UI it apparently removes apostrophes (') from the variable name.

Snuffy2 commented 1 year ago

It was the name and not the entity_id or variable state/value where the apostrophe disappeared, correct?

I'm not able to reproduce this so please give me the step by step way to reproduce if possible. If you could enable debug logging and attach the logs when you create it would also be very helpful to debug.