如果拨号方式不同或主wan不是wan1,可能无法获取正确的信息。这种情况需要自行修改部分代码。
2022.11.19 优化超时设置,减少“During handling of the above exception, another exception occurred”报错。(thinks lovedreamland)
Logger: homeassistant.loader
Source: custom_components/ikuai/__init__.py:8
Integration: ikuai (documentation)
First occurred: 16:50:11 (8 occurrences)
Last logged: 17:03:28
Unexpected exception importing platform custom_components.ikuai.config_flow
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 681, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 698, 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 "/config/custom_components/ikuai/__init__.py", line 8, in <module>
from .data_fetcher import DataFetcher
File "/config/custom_components/ikuai/data_fetcher.py", line 256
]
^
SyntaxError: closing parenthesis ']' does not match opening parenthesis '(' on line 255
错误
此集成不支持通过 UI 配置。如果您是从 Home Assistant 网站点击链接前来,请确保您运行的是最新版本的 Home Assistant
日志里两条error
此错误来自自定义集成。
Logger: homeassistant.loader
Source: custom_components/ikuai/__init__.py:8
Integration: ikuai (documentation)
First occurred: 17:09:12 (1 occurrences)
Last logged: 17:09:12
Unexpected exception importing platform custom_components.ikuai.config_flow
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 657, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 674, 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 "/config/custom_components/ikuai/__init__.py", line 8, in <module>
from .data_fetcher import DataFetcher
File "/config/custom_components/ikuai/data_fetcher.py", line 256
]
^
SyntaxError: closing parenthesis ']' does not match opening parenthesis '(' on line 255
Logger: homeassistant.config_entries
Source: config_entries.py:796
First occurred: 17:09:12 (1 occurrences)
Last logged: 17:09:12
Error occurred loading configuration flow for integration ikuai: Exception importing custom_components.ikuai.config_flow