climate triggers Climate and ClimateCall references (#5028)
This commit is contained in:
1 parent
cd72a2ed7e
commit
a120a455bf
7 files changed
+33
-20
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user