|
升级了ha后,发现内置的hk报错
报错如下:
Error during setup of component homekit
Traceback (most recent call last):
File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/setup.py", line 145, in _async_setup_component
hass, processed_config)
File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/homekit/__init__.py", line 84, in async_setup
await hass.async_add_executor_job(homekit.setup)
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/homekit/__init__.py", line 218, in setup
from .accessories import HomeBridge, HomeDriver
File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/homekit/accessories.py", line 8, in <module>
from pyhap.accessory_driver import AccessoryDriver
File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/pyhap/accessory_driver.py", line 46, in <module>
from pyhap.hap_server import HAPServer
File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/pyhap/hap_server.py", line 20, in <module>
from Crypto.Protocol.KDF import HKDF
ModuleNotFoundError: No module named 'Crypto.Protocol'
|
|