JackHuang021 / ld2410s

ld2410s components for esphome
2 stars 1 forks source link

8266可以嘛?大佬具体怎么使用那? #2

Open paterli opened 4 months ago

paterli commented 4 months ago

用win 命令行编译报错了,麻烦大佬看看 ERROR Unable to import component binary_sensor: Traceback (most recent call last): File "C:\Users\1\AppData\Local\Programs\Python\Python312\Lib\site-packages\esphome\loader.py", line 169, in _lookup_module module = importlib.import_module(f"esphome.components.{domain}") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\1\AppData\Local\Programs\Python\Python312\Lib\importlib__init.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1387, in _gcd_import File "", line 1360, in _find_and_load File "", line 1331, in _find_and_load_unlocked File "", line 935, in _load_unlocked File "", line 995, in exec_module File "", line 488, in _call_with_frames_removed File "C:\Users\1\Desktop\esphome\ld2410s\components\binary_sensor.py", line 10, in from . import CONF_LD2410S_ID, LD2410SComponent ImportError: cannot import name 'CONF_LD2410S_ID' from 'esphome.components' (C:\Users\1\AppData\Local\Programs\Python\Python312\Lib\site-packages\esphome\components\init__.py) Failed config

binary_sensor: [source ./2410s.yaml:52]

Component not found: binary_sensor.