Skip to content

Python 3 support and probably further issues #18

@monoluser

Description

@monoluser

Thank you for sharing your code. I've ported it to Python 3 as far as I could, but still get errors:

Starting BLE adapter...
Init Nuki BLE connection...
Nuki BLE connection established
Nuki Pairing UUID handle created: 008b
Traceback (most recent call last):
File "./init.py", line 17, in
nuki.authenticateUser(myPublicKeyHex, myPrivateKeyHex, myID, myIDType, myName)
File "/home/pi/nukiPyBridge/nuki.py", line 88, in authenticateUser
publicKeyReqCommand = publicKeyReq.generate()
File "/home/pi/nukiPyBridge/nuki_messages.py", line 50, in generate
return array.array('B',msg.decode("hex"))
AttributeError: 'str' object has no attribute 'decode'

Can you check my changes and if they're fine, fix the (hopefully) small rest?

nukiPyBridge.diff.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions