climate triggers Climate and ClimateCall references (#5028)

This commit is contained in:
Sergey Dudanov authored and GitHub committed 2023-07-31 07:52:01 +12:00
1 parent cd72a2ed7e
commit a120a455bf
7 files changed
+33 -20

No files matched your search

+1 -1
View File
@@ -50,7 +50,7 @@ void Controller::setup_controller(bool include_internal) {
#ifdef USE_CLIMATE
for (auto *obj : App.get_climates()) {
if (include_internal || !obj->is_internal())
obj->add_on_state_callback([this, obj]() { this->on_climate_update(obj); });
obj->add_on_state_callback([this, obj](climate::Climate & /*unused*/) { this->on_climate_update(obj); });
}
#endif
#ifdef USE_NUMBER