timmchugh11 / Chinese-Diesel-Heater---ESPHome

20 stars 2 forks source link

error: could not convert '{my_switch}' #3

Closed Monacoslo closed 12 months ago

Monacoslo commented 12 months ago
When trying to compile, I get this error `Compiling .pioenvs/avtodom-heater/lib67b/ESP8266WiFi/ESP8266WiFiScan.cpp.o /config/esphome/avtodom-heater.yaml: In lambda function: /config/esphome/avtodom-heater.yaml:200:28: error: expected type-specifier before 'HeaterSwitch' 200 auto my_switch = new HeaterSwitch(id(heater_serial)); ^~~~ /config/esphome/avtodom-heater.yaml:202:24: error: could not convert '{myswitch}' from '' to 'std::vector<esphome::switch::Switch*>' 202 return {my_switch}; ^

Compiling .pioenvs/avtodom-heater/lib67b/ESP8266WiFi/WiFiClient.cpp.o *** [.pioenvs/avtodom-heater/src/main.cpp.o] Error 1`

What is wrong?

timmchugh11 commented 12 months ago

I left the testing switch I was using to try and control the heater, but the related switch files isnt present, I have commited chages to fix the error

1d58639aab0a5a5ad278e88b7f163bec0dbcccda