but I'm just starting with python so I'm not quite sure about the right syntax. Also I am not 100 percent sure about the random number format where the documentation says "uint16". Maybe someone with more experience can create a pull request for that? :)
I think it would be a good idea to use the hashed token ( Documentation ) instead of the plain version to protect the token a little bit better.
This seems to be only possible in the hardware bridge, so maybe this needs to be checked before using it if possible.
This line https://github.com/kvj/hass_nuki_ng/blob/3eabba4c1152aa59aa29be642a76acbd8d15a3d7/custom_components/nuki_ng/nuki.py#L65 probably needs to change to something like this
but I'm just starting with python so I'm not quite sure about the right syntax. Also I am not 100 percent sure about the random number format where the documentation says "uint16". Maybe someone with more experience can create a pull request for that? :)