kvj / hass_nuki_ng

Better support for Nuki devices in the Home Assistant
MIT License
176 stars 33 forks source link

special characters in API-Token do not get encoded #64

Open w-marco opened 2 years ago

w-marco commented 2 years ago

I am using special characters (@€&) in my API-Token. The integration does not encode them before sending them out, nor does it tell me I need to to that. This leads to error 401 when trying to setup the Integration. It took me a while to figure out, that I need to encode my Token using something like this: https://www.urlencoder.org/

When pasting in the encoded token, everything works flawless. Maybe it would be possible to add a checkbox to setup, which enabled URL-encoding for special chars (or just enable it by default)?

garv3 commented 2 years ago

Yes, same for me!