GrKoR / esphome_aux_ac_component

ESPHome component for AUX based air conditioners. Direct wifi control of HVAC by ESPHome and Home Assistant. HVAC status and command feedback are available.
Other
175 stars 42 forks source link

[fw v.1.0.0] Warning in esphome compiler #100

Open akdri opened 4 months ago

akdri commented 4 months ago

alert in the esphome compiler

it's wrong?

Compiling .pioenvs/aire_dormitorio/src/esphome/components/aux_ac/command_builder.cpp.o
In file included from src/esphome.h:17,
                 from src/esphome/components/aux_ac/aircon.h:6,
                 from src/esphome/components/aux_ac/aircon.cpp:1:
src/esphome/components/aux_ac/automation.h: In member function 'void esphome::aux_airconditioner::AirConDisplayOffAction<Ts>::play(Ts ...)':
src/esphome/components/aux_ac/automation.h:20:52: warning: invalid use of incomplete type 'class esphome::aux_airconditioner::AirCon'
             void play(Ts... x) override { this->ac_->action_display_off(); }
                                                    ^~
src/esphome/components/aux_ac/automation.h:11:15: note: forward declaration of 'class esphome::aux_airconditioner::AirCon'
         class AirCon;
               ^~~~~~
src/esphome/components/aux_ac/automation.h: In member function 'void esphome::aux_airconditioner::AirConDisplayOnAction<Ts>::play(Ts ...)':
src/esphome/components/aux_ac/automation.h:32:52: warning: invalid use of incomplete type 'class esphome::aux_airconditioner::AirCon'
             void play(Ts... x) override { this->ac_->action_display_on(); }
                                                    ^~
src/esphome/components/aux_ac/automation.h:11:15: note: forward declaration of 'class esphome::aux_airconditioner::AirCon'
         class AirCon;
               ^~~~~~
src/esphome/components/aux_ac/automation.h: In member function 'void esphome::aux_airconditioner::AirConVLouverSwingAction<Ts>::play(Ts ...)':
src/esphome/components/aux_ac/automation.h:45:52: warning: invalid use of incomplete type 'class esphome::aux_airconditioner::AirCon'
             void play(Ts... x) override { this->ac_->action_set_vlouver_swing(); }
                                                    ^~
src/esphome/components/aux_ac/automation.h:11:15: note: forward declaration of 'class esphome::aux_airconditioner::AirCon'
         class AirCon;
               ^~~~~~
src/esphome/components/aux_ac/automation.h: In member function 'void esphome::aux_airconditioner::AirConVLouverStopAction<Ts>::play(Ts ...)':
src/esphome/components/aux_ac/automation.h:57:52: warning: invalid use of incomplete type 'class esphome::aux_airconditioner::AirCon'
             void play(Ts... x) override { this->ac_->action_set_vlouver_stop(); }
                                                    ^~
src/esphome/components/aux_ac/automation.h:11:15: note: forward declaration of 'class esphome::aux_airconditioner::AirCon'
         class AirCon;
               ^~~~~~
src/esphome/components/aux_ac/automation.h: In member function 'void esphome::aux_airconditioner::AirConVLouverTopAction<Ts>::play(Ts ...)':
src/esphome/components/aux_ac/automation.h:69:52: warning: invalid use of incomplete type 'class esphome::aux_airconditioner::AirCon'
             void play(Ts... x) override { this->ac_->action_set_vlouver_top_position(); }
                                                    ^~
src/esphome/components/aux_ac/automation.h:11:15: note: forward declaration of 'class esphome::aux_airconditioner::AirCon'
         class AirCon;
               ^~~~~~
src/esphome/components/aux_ac/automation.h: In member function 'void esphome::aux_airconditioner::AirConVLouverMiddleAboveAction<Ts>::play(Ts ...)':
src/esphome/components/aux_ac/automation.h:81:52: warning: invalid use of incomplete type 'class esphome::aux_airconditioner::AirCon'
             void play(Ts... x) override { this->ac_->action_set_vlouver_middle_above_position(); }
                                                    ^~
src/esphome/components/aux_ac/automation.h:11:15: note: forward declaration of 'class esphome::aux_airconditioner::AirCon'
         class AirCon;
               ^~~~~~
src/esphome/components/aux_ac/automation.h: In member function 'void esphome::aux_airconditioner::AirConVLouverMiddleAction<Ts>::play(Ts ...)':
src/esphome/components/aux_ac/automation.h:93:52: warning: invalid use of incomplete type 'class esphome::aux_airconditioner::AirCon'
             void play(Ts... x) override { this->ac_->action_set_vlouver_middle_position(); }
                                                    ^~
src/esphome/components/aux_ac/automation.h:11:15: note: forward declaration of 'class esphome::aux_airconditioner::AirCon'
         class AirCon;
               ^~~~~~
src/esphome/components/aux_ac/automation.h: In member function 'void esphome::aux_airconditioner::AirConVLouverMiddleBelowAction<Ts>::play(Ts ...)':
src/esphome/components/aux_ac/automation.h:105:52: warning: invalid use of incomplete type 'class esphome::aux_airconditioner::AirCon'
             void play(Ts... x) override { this->ac_->action_set_vlouver_middle_below_position(); }
                                                    ^~
src/esphome/components/aux_ac/automation.h:11:15: note: forward declaration of 'class esphome::aux_airconditioner::AirCon'
         class AirCon;
               ^~~~~~
src/esphome/components/aux_ac/automation.h: In member function 'void esphome::aux_airconditioner::AirConVLouverBottomAction<Ts>::play(Ts ...)':
src/esphome/components/aux_ac/automation.h:117:52: warning: invalid use of incomplete type 'class esphome::aux_airconditioner::AirCon'
             void play(Ts... x) override { this->ac_->action_set_vlouver_bottom(); }
                                                    ^~
src/esphome/components/aux_ac/automation.h:11:15: note: forward declaration of 'class esphome::aux_airconditioner::AirCon'
         class AirCon;
               ^~~~~~
src/esphome/components/aux_ac/automation.h: In member function 'void esphome::aux_airconditioner::AirConVLouverSetAction<Ts>::play(Ts ...)':
src/esphome/components/aux_ac/automation.h:132:26: warning: invalid use of incomplete type 'class esphome::aux_airconditioner::AirCon'
                 this->ac_->action_set_vlouver_position((vlouver_esphome_position_t)this->value_.value(x...));
                          ^~
src/esphome/components/aux_ac/automation.h:11:15: note: forward declaration of 'class esphome::aux_airconditioner::AirCon'
         class AirCon;
               ^~~~~~
src/esphome/components/aux_ac/automation.h: In member function 'void esphome::aux_airconditioner::AirConPowerLimitationOffAction<Ts>::play(Ts ...)':
src/esphome/components/aux_ac/automation.h:146:52: warning: invalid use of incomplete type 'class esphome::aux_airconditioner::AirCon'
             void play(Ts... x) override { this->ac_->action_power_limitation_off(); }
                                                    ^~
src/esphome/components/aux_ac/automation.h:11:15: note: forward declaration of 'class esphome::aux_airconditioner::AirCon'
         class AirCon;
               ^~~~~~
src/esphome/components/aux_ac/automation.h: In member function 'void esphome::aux_airconditioner::AirConPowerLimitationOnAction<Ts>::play(Ts ...)':
src/esphome/components/aux_ac/automation.h:161:26: warning: invalid use of incomplete type 'class esphome::aux_airconditioner::AirCon'
                 this->ac_->action_power_limitation_on(this->value_.value(x...));
                          ^~
src/esphome/components/aux_ac/automation.h:11:15: note: forward declaration of 'class esphome::aux_airconditioner::AirCon'
         class AirCon;
GrKoR commented 4 months ago

Hi!

I know about these warnings. They aren't affect anything. They will be fixed. Someday =)