Возможно стоит исправить конструктор класса

Fixes #16
This commit is contained in:
GrKoR
2021-11-02 20:49:08 +03:00
parent a1a9351192
commit 3c1eb97f1b

View File

@@ -1557,10 +1557,6 @@ class AirCon : public esphome::Component, public esphome::climate::Climate {
//esphome::sensor::Sensor *sensor_outdoor_temperature = new esphome::sensor::Sensor();
public:
AirCon(){ initAC(); };
AirCon(esphome::uart::UARTComponent *parent) { initAC(parent); };
// инициализация объекта
void initAC(esphome::uart::UARTComponent *parent = nullptr){
_dataMillis = millis();