Can't have "!" in a Password?

Hi All,

I’m having a hard time entering passwords in my config/secrets file. Problem is when I have a password that has the “!” character in it. Whenever I add a password with an “!” in it, HA thinks I’m beginning an “include” argument.

I tried wrapping the whole password in “” but that didn’t work. Is there a way to add passwords that have an “!” in them, or do we have to steer clear of that character in a password?

Thanks in advance for your help!

John

1 Like

My front end password has a ! in it and it works fine. I am, however, passing that password into a secrets.yaml file.

Interesting. So when you type the ! in the secrets.yaml file it doesnt change to italic text signifying an argument? I’ll have to try that again.

Thanks for the response.

Can you explain how do you do that?

That was 2017, the password for the frontend was defined in the config file IIRC and is no longer done that way. Now it’s placed in a file in .storage after onboarding. I believe using a ! Shouldn’t be an issue.

For using secrets on other passwords see. Storing secrets - Home Assistant