1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-17 23:35:47 +00:00

climate triggers Climate and ClimateCall references (#5028)

This commit is contained in:
Sergey Dudanov
2023-07-30 23:52:01 +04:00
committed by GitHub
parent cd72a2ed7e
commit a120a455bf
7 changed files with 33 additions and 20 deletions

View File

@@ -216,7 +216,7 @@ void MQTTClimateComponent::setup() {
});
}
this->device_->add_on_state_callback([this]() { this->publish_state_(); });
this->device_->add_on_state_callback([this](Climate & /*unused*/) { this->publish_state_(); });
}
MQTTClimateComponent::MQTTClimateComponent(Climate *device) : device_(device) {}
bool MQTTClimateComponent::send_initial_state() { return this->publish_state_(); }