jheling / freeathome

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

Fix component setup in HA 2022.07 #131

Closed jeroen84 closed 1 year ago

jeroen84 commented 1 year ago

After Home Assistant 2022.07 upgrade the integration stopped loading. This should fix the load.

AStenzel commented 1 year ago

Works for me...

... when using integration in docker container

Tested in

Version | core-2022.7.1 Installationstyp | Home Assistant Container

... but running in Home Assistant OS needs some adjustments in internal docker container "homeassistant". Required dependency for libnacl (libsodium) is missing.

Workaround log into this container and add it manually... ;)

Tested in

Version | core-2022.7.1 Installationstyp | Home Assistant OS

jeroen84 commented 1 year ago

This PR indeed does not solve the libsodium dependency issue, which is OS specific. If libsodium is installed, the PR solves the issue on 2022.7 since slixmpp==1.5.1 is incompatible with Python 3.10.

I suggest we solve the libsodium dependency issue in a separate PR.

Tho85 commented 1 year ago

This part of the fix is working for me. Merging for now, let's try to fix the libsodium issue in #130.

Thanks @jeroen84