HomeKit not loading after last update

Hi guys,

The Homekit component fail to load after updating 0.73.

I see this in the log:
2018-07-14 11:15:58 ERROR (MainThread) [homeassistant.setup] Error during setup of component homekit
Traceback (most recent call last):
_ File “/usr/local/lib/python3.7/site-packages/homeassistant/setup.py”, line 143, in async_setup_component
_ hass, processed_config)_
_ File “/usr/local/lib/python3.7/site-packages/homeassistant/components/homekit/init.py”, line 68, in async_setup_
_ await hass.async_add_job(homekit.setup)_
_ File “/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/concurrent/futures/thread.py”, line 57, in run_
_ result = self.fn(*self.args, **self.kwargs)_
_ File “/usr/local/lib/python3.7/site-packages/homeassistant/components/homekit/init.py”, line 193, in setup_
_ from .accessories import HomeBridge, HomeDriver_
_ File “/usr/local/lib/python3.7/site-packages/homeassistant/components/homekit/accessories.py”, line 8, in _
_ from pyhap.accessory_driver import AccessoryDriver_
_ File “/Users/naor/.homeassistant/deps/lib/python/site-packages/pyhap/accessory_driver.py”, line 44, in _
_ from pyhap.encoder import AccessoryEncoder_
_ File “/Users/naor/.homeassistant/deps/lib/python/site-packages/pyhap/encoder.py”, line 9, in _
_ import ed25519_
_ File “/Users/naor/.homeassistant/deps/lib/python/site-packages/ed25519/init.py”, line 1, in _
_ from .keys import (BadSignatureError, BadPrefixError,_
_ File “/Users/naor/.homeassistant/deps/lib/python/site-packages/ed25519/keys.py”, line 3, in _
_ from . import ed25519
_ImportError: cannot import name 'ed25519’ from ‘ed25519’ (/Users/naor/.homeassistant/deps/lib/python/site-packages/ed25519/init.py)

Any suggestions? tried looking for similar problems, but nothing found with my log lines…

Thanks in advanced!

Naor.

Tried some digging and removed all the HomeKit files and let HA import them again and the last message appeared again. I think that might be the problem…

ImportError: cannot import name ‘_ed25519’ from ‘ed25519’ (/Users/naor/.homeassistant/deps/lib/python/site-packages/ed25519/init.py)

Can someone help me please with solving this?

Check the release notes for 0.74 there seem to have been some changes/fixes.

Hi, Thanks for the tip. But even after upgrading to 0.74 I see the same lines in the log…

Can I delete just the HomeKit component and have it downloaded again?

UPDATE:
I tried to force reinstall home assistant but it always fail with this ed25519 files
this log line:
ImportError: cannot import name '_ed25519' from 'ed25519' (/Users/naor/.homeassistant/deps/lib/python/site-packages/ed25519/__init__.py)

Have you got any fix for this issue?
I’m seeing the same problem…

No… Got used to not use Homekit till I’ll have more time to handle this…

I got the same problem on 0.84.5 and python 3.7. Annoying…

I dont know why, but after the last update I just retried enabling Homekit and it started working again…
So, i enjoy it while it last

Just upgraded from 0.84.5 to 0.84.6 and HomeKit stopped working with this same error.

Error during setup of component homekit

Any workarounds? It’s been working fine for me for a long time…I have it set up to delay start up until after Z-wave network is up, but still it failed from the start. Will have to wait 24-72 hours before I can reboot again to see if it comes back due to a separate Z-wave issue with battery powered devices…