『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 502|回复: 0

[技术探讨] 请大家帮忙看下esphome错误日志

[复制链接]

39

主题

477

帖子

2685

积分

金牌会员

Rank: 6Rank: 6

积分
2685
金钱
2208
HASS币
10
发表于 2022-8-6 14:57:18 | 显示全部楼层 |阅读模式
编译到最后提示的错误日志。谢谢!
Compiling /data/1115h/.pioenvs/1115h/src/esphome/components/wifi/wifi_component_esp_idf.cpp.o
Compiling /data/1115h/.pioenvs/1115h/src/esphome/core/application.cpp.o
Compiling /data/1115h/.pioenvs/1115h/src/esphome/core/color.cpp.o
Compiling /data/1115h/.pioenvs/1115h/src/esphome/core/component.cpp.o
Compiling /data/1115h/.pioenvs/1115h/src/esphome/core/component_iterator.cpp.o
Compiling /data/1115h/.pioenvs/1115h/src/esphome/core/controller.cpp.o
Compiling /data/1115h/.pioenvs/1115h/src/esphome/core/entity_base.cpp.o
Compiling /data/1115h/.pioenvs/1115h/src/esphome/core/helpers.cpp.o
Compiling /data/1115h/.pioenvs/1115h/src/esphome/core/log.cpp.o
Compiling /data/1115h/.pioenvs/1115h/src/esphome/core/scheduler.cpp.o
Compiling /data/1115h/.pioenvs/1115h/src/esphome/core/util.cpp.o
Compiling /data/1115h/.pioenvs/1115h/src/main.cpp.o
Generating LD script /data/1115h/.pioenvs/1115h/ld/local.eagle.app.v6.common.ld
Compiling /data/1115h/.pioenvs/1115h/lib975/ESPAsyncTCP-esphome/AsyncPrinter.cpp.o
Compiling /data/1115h/.pioenvs/1115h/lib975/ESPAsyncTCP-esphome/ESPAsyncTCP.cpp.o
/config/esphome/1115h.yaml: In lambda function:
/config/esphome/1115h.yaml:176:35: error: expected type-specifier before 'UartReadLineSensor'
  176 |     auto my_custom_sensor = new UartReadLineSensor(id(uart_bus));
      |                                   ^~~~~~~~~~~~~~~~~~
/config/esphome/1115h.yaml:178:31: error: could not convert '{my_custom_sensor}' from '<brace-enclosed initializer list>' to 'std::vector<esphome::text_sensor::TextSensor*>'
  178 |     return {my_custom_sensor};
      |                               ^
      |                               |
      |                               <brace-enclosed initializer list>
*** [/data/1115h/.pioenvs/1115h/src/main.cpp.o] Error 1
========================= [FAILED] Took 81.82 seconds =========================


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-20 18:30 , Processed in 0.044192 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表