jheling / freeathome

Free@Home component for Home Assistant
103 stars 37 forks source link

Replace libnacl with pynacl #134

Closed jeroen84 closed 1 year ago

jeroen84 commented 1 year ago

Since libsodium is no longer included in the OS build of Home Assistant the libnacl library does no longer work out of the box.

With this PR the libnacl library is replaced by pynacl. Since not all functions used by the free@home integration are available in pynacl I have used two functions from the pure_pynacl library.

I have tested this change on HA 2022.8.4 Docker image on a Raspberry Pi.

Since I developed on a development image of Home Assistant, the code style is changed to Black as well for the applicable python files.

Closes #130

jheling commented 1 year ago

Thanks! The changes work form me on a raspberry pi.

Gersh1970 commented 1 year ago

thx! works for me on a Raspberry Pi3. Installed the changes, updated to 8.5 and everything works fine.

Tho85 commented 1 year ago

Works fine for me too (on 2022.7.5, btw). Merging :rocket: