Could not compiling the node with miot_mccgq02hl component, after update ESPHome to 2021.10.0 version
itanczos opened this issue ยท 4 comments
itanczos commented
Could not compiling the node with miot_mccgq02hl component, after update ESPHome to 2021.10.0 version
ERROR Unable to import component miot_mccgq02hl.binary_sensor:
Traceback (most recent call last):
File "/esphome/esphome/loader.py", line 162, in _lookup_module
module = importlib.import_module(f"esphome.components.{domain}")
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/config/esphome/.esphome/external_components/2f2a5be3/components/miot_mccgq02hl/binary_sensor.py", line 3, in <module>
from esphome.components import miot, binary_sensor
File "/config/esphome/.esphome/external_components/2f2a5be3/components/miot/__init__.py", line 8, in <module>
from esphome.const import (
ImportError: cannot import name 'ESP_PLATFORM_ESP32' from 'esphome.const' (/esphome/esphome/const.py)
...
...
xbmcnut commented
Yep, I got issues too.
Platform not found: 'binary_sensor.miot_rtcgq02lm'.
platform: miot_rtcgq02lm
mac_address: 54:EF:44:xx:xx:xx
bindkey: <lotsofnumbers>
name: RTCGQ02LM NE Motion
timeout:
name: RTCGQ02LM NE Timeout
idle_time:
name: RTCGQ02LM NE Idle Time
light:
name: RTCGQ02LM NE Lux
battery_level:
name: RTCGQ02LM NE Battery
binary_sensor.miot_rtcgq02lm: [source /config/esphome/esp32-ble-tracker-2.yaml:63]
dentra commented
Thanks for reporting. Need some time. The fix is coming.
dentra commented
please verify
itanczos commented
Thank you!
Working! ๐๐