INFO Reading configuration /config/esphome/dartwsz.yaml...
ERROR Unable to load component sensor:
Traceback (most recent call last):
File "/opt/esphome/esphome/loader.py", line 163, in _lookup_module
module = importlib.import_module(f"esphome.components.{domain}")
File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/config/dart/sensor.py", line 29, in <module>
cv.Optional(CONF_FORMALDEHYDE): sensor.sensor_schema(
AttributeError: module 'esphome.components.sensor' has no attribute 'sensor_schema'
Failed config
sensor: [source /config/esphome/dartwsz.yaml:36]
Component not found: sensor.
- platform: dart
formaldehyde:
name: HCHO
id: HCHO
uart_id: utt2