This commit is contained in:
Tomasz Duda 2024-08-13 17:14:04 +02:00
parent c197545b80
commit cb49627d39

View file

@ -47,7 +47,7 @@ class HaierClimateBase : public esphome::Component,
void set_supported_presets(const std::set<esphome::climate::ClimatePreset> &presets);
bool valid_connection() const { return this->protocol_phase_ >= ProtocolPhases::IDLE; };
size_t available() noexcept override { return esphome::uart::UARTDevice::available(); };
size_t read_array(uint8_t *data, size_t len) noexcept override { // NOLINT(readability-non-const-parameter)
size_t read_array(uint8_t *data, size_t len) noexcept override {
return esphome::uart::UARTDevice::read_array(data, len) ? len : 0;
};
void write_array(const uint8_t *data, size_t len) noexcept override {