mirror of
https://github.com/esphome/esphome.git
synced 2026-09-18 02:28:42 +00:00
[haier] Move set_send_wifi into the header (#19299)
This commit is contained in:
@@ -190,8 +190,6 @@ void HaierClimateBase::set_supported_presets(climate::ClimatePresetMask presets)
|
||||
this->traits_.add_supported_preset(climate::CLIMATE_PRESET_NONE);
|
||||
}
|
||||
|
||||
void HaierClimateBase::set_send_wifi(bool send_wifi) { this->send_wifi_signal_ = send_wifi; }
|
||||
|
||||
void HaierClimateBase::send_custom_command(const haier_protocol::HaierMessage &message) {
|
||||
this->action_request_ = PendingAction({ActionRequest::SEND_CUSTOM_COMMAND, message});
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ class HaierClimateBase : public esphome::Component,
|
||||
};
|
||||
bool can_send_message() const { return haier_protocol_.get_outgoing_queue_size() == 0; };
|
||||
void set_answer_timeout(uint32_t timeout);
|
||||
void set_send_wifi(bool send_wifi);
|
||||
void set_send_wifi(bool send_wifi) { this->send_wifi_signal_ = send_wifi; }
|
||||
void send_custom_command(const haier_protocol::HaierMessage &message);
|
||||
template<typename F> void add_status_message_callback(F &&callback) {
|
||||
this->status_message_callback_.add(std::forward<F>(callback));
|
||||
|
||||
Reference in New Issue
Block a user