From 8d2499c783abe8364b28d09f73d1a204427c2ce9 Mon Sep 17 00:00:00 2001 From: ElVit Date: Tue, 18 Feb 2025 09:25:25 +0100 Subject: [PATCH] Allowed 0x21 in 3th and 4th byte --- components/panasonic_heatpump/panasonic_heatpump.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/panasonic_heatpump/panasonic_heatpump.cpp b/components/panasonic_heatpump/panasonic_heatpump.cpp index af12d8d..9a9d213 100644 --- a/components/panasonic_heatpump/panasonic_heatpump.cpp +++ b/components/panasonic_heatpump/panasonic_heatpump.cpp @@ -68,7 +68,7 @@ namespace esphome } // Discard message if format is wrong if ((this->response_message_.size() == 3 || this->response_message_.size() == 4) - && byte != 0x01 && byte != 0x10) + && byte != 0x01 && byte != 0x10 && byte != 0x21) { ESP_LOGW(TAG, "Invalid response message: %d. byte is 0x%02X but expexted is 0x01 or 0x10", response_message_.size(), byte); @@ -145,7 +145,7 @@ namespace esphome } // Discard message if format is wrong if ((this->request_message_.size() == 3 || this->request_message_.size() == 4) - && byte != 0x01 && byte != 0x10) + && byte != 0x01 && byte != 0x10 && byte != 0x21) { ESP_LOGW(TAG, "Invalid request message: %d. byte is 0x%02X but expexted is 0x01 or 0x10", request_message_.size(), byte);