你好,编译时出现在个错误。请帮我看看是什么问题,怎样修改。
/config/esphome/pp9.yaml: In lambda function:
/config/esphome/pp9.yaml:60:18: error: lvalue required as left operand of assignment
60 | if (x.c_str() = "on"){
| ~~~~~^~
Compiling /data/pp9/.pioenvs/pp9/lib67b/ESP8266WiFi/BearSSLHelpers.cpp.o
Archiving /data/pp9/.pioenvs/pp9/lib975/libESPAsyncTCP-esphome.a
Compiling /data/pp9/.pioenvs/pp9/lib67b/ESP8266WiFi/CertStoreBearSSL.cpp.o
*** [/data/pp9/.pioenvs/pp9/src/main.cpp.o] Error 1
========================= [FAILED] Took 125.08 seconds =========================
|