diff --git a/esphome/components/haier/haier_base.h b/esphome/components/haier/haier_base.h index 1a1230045f..7d92a6611c 100644 --- a/esphome/components/haier/haier_base.h +++ b/esphome/components/haier/haier_base.h @@ -47,7 +47,7 @@ class HaierClimateBase : public esphome::Component, void set_supported_presets(const std::set &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 {