代码如下:
2022-03-08 22:02:05 ERROR (MainThread) [homeassistant.loader Unexpected exception importing platform homeassistant.components.homekit_controller.config_flow
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/homeassistant/loader.py", line 566, in get_platform
cache[full_name = self._import_platform(platform_name)
File "/usr/local/lib/python3.10/site-packages/homeassistant/loader.py", line 583, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:, package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/local/lib/python3.10/site-packages/homeassistant/components/homekit_controller/__init__.py", line 25, in <module>
from .config_flow import normalize_hkid
File "/usr/local/lib/python3.10/site-packages/homeassistant/components/homekit_controller/config_flow.py", line 18, in <module>
from .connection import get_accessory_name, get_bridge_information
File "/usr/local/lib/python3.10/site-packages/homeassistant/components/homekit_controller/connection.py", line 21, in <module>
from .const import (
File "/usr/local/lib/python3.10/site-packages/homeassistant/components/homekit_controller/const.py", line 51, in <module>
CharacteristicsTypes.Vendor.CONNECTSENSE_ENERGY_WATT: "sensor",
AttributeError: type object 'CharacteristicsTypes' has no attribute 'Vendor'
2022-03-08 22:02:05 ERROR (MainThread) [homeassistant.config_entries Error occurred loading configuration flow for integration homekit_controller: Exception importing homeassistant.components.homekit_controller.config_flow