Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error occurred during the update process #114

Open
nguyenquangduc opened this issue Mar 3, 2024 · 0 comments
Open

An error occurred during the update process #114

nguyenquangduc opened this issue Mar 3, 2024 · 0 comments

Comments

@nguyenquangduc
Copy link

While updating an error occurred and I need help and this is my error
src/esphome/components/panasonic_ac/esppac.cpp: In member function 'void esphome::panasonic_ac::PanasonicAC::set_vertical_swing_select(esphome::select::Select*)':
src/esphome/components/panasonic_ac/esppac.cpp:187:4: error: no matching function for call to 'esphome::select::Select::add_on_state_callback(esphome::panasonic_ac::PanasonicAC::set_vertical_swing_select(esphome::select::Select*)::<lambda(const string&)>)'
});
^
In file included from src/esphome/components/panasonic_ac/esppac.h:4,
from src/esphome/components/panasonic_ac/esppac.cpp:1:
src/esphome/components/select/select.h:62:8: note: candidate: 'void esphome::select::Select::add_on_state_callback(std::function<void(std::__cxx11::basic_string, unsigned int)>&&)'
void add_on_state_callback(std::function<void(std::string, size_t)> &&callback);
^~~~~~~~~~~~~~~~~~~~~
src/esphome/components/select/select.h:62:8: note: no known conversion for argument 1 from 'esphome::panasonic_ac::PanasonicAC::set_vertical_swing_select(esphome::select::Select*)::<lambda(const string&)>' to 'std::function<void(std::__cxx11::basic_string, unsigned int)>&&'
src/esphome/components/panasonic_ac/esppac.cpp: In member function 'void esphome::panasonic_ac::PanasonicAC::set_horizontal_swing_select(esphome::select::Select*)':
src/esphome/components/panasonic_ac/esppac.cpp:196:4: error: no matching function for call to 'esphome::select::Select::add_on_state_callback(esphome::panasonic_ac::PanasonicAC::set_horizontal_swing_select(esphome::select::Select*)::<lambda(const string&)>)'
});
^
In file included from src/esphome/components/panasonic_ac/esppac.h:4,
from src/esphome/components/panasonic_ac/esppac.cpp:1:
src/esphome/components/select/select.h:62:8: note: candidate: 'void esphome::select::Select::add_on_state_callback(std::function<void(std::__cxx11::basic_string, unsigned int)>&&)'
void add_on_state_callback(std::function<void(std::string, size_t)> &&callback);
^~~~~~~~~~~~~~~~~~~~~
src/esphome/components/select/select.h:62:8: note: no known conversion for argument 1 from 'esphome::panasonic_ac::PanasonicAC::set_horizontal_swing_select(esphome::select::Select*)::<lambda(const string&)>' to 'std::function<void(std::__cxx11::basic_string, unsigned int)>&&'
*** [.pioenvs/esp32-tron/src/esphome/components/panasonic_ac/esppac.cpp.o] Error 1
========================= [FAILED] Took 14.30 seconds =========================

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant