- 积分
- 948
- 金钱
- 864
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
高级会员
- 积分
- 948
- 金钱
- 864
- HASS币
- 0
|
发表于 2023-12-11 11:10:13
|
显示全部楼层
Core 2023.12.1 报错
2023-12-11 11:02:19.289 ERROR (MainThread) [homeassistant.loader] Unexpected exception importing platform custom_components.oilprice.sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 834, in get_platform
cache[full_name] = self._import_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 851, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/config/custom_components/oilprice/sensor.py", line 35, in <module>
@asyncio.coroutine
^^^^^^^^^^^^^^^^^ |
|