From 292d098df20cff40e0440b3ccb87f85050821983 Mon Sep 17 00:00:00 2001 From: ElVit <54866762+ElVit@users.noreply.github.com> Date: Mon, 8 Dec 2025 10:14:49 +0100 Subject: [PATCH] Update panasonic_heatpump.h --- components/panasonic_heatpump/panasonic_heatpump.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/panasonic_heatpump/panasonic_heatpump.h b/components/panasonic_heatpump/panasonic_heatpump.h index bbe7045..5ae9693 100644 --- a/components/panasonic_heatpump/panasonic_heatpump.h +++ b/components/panasonic_heatpump/panasonic_heatpump.h @@ -12,7 +12,7 @@ #include "commands.h" #ifndef PANASONIC_HEATPUMP_VERSION -#define PANASONIC_HEATPUMP_VERSION "0.0.5-beta.1" +#define PANASONIC_HEATPUMP_VERSION "0.0.5-beta.2" #endif namespace esphome { @@ -113,6 +113,9 @@ class PanasonicHeatpumpComponent : public PollingComponent, public uart::UARTDev void add_extra_sensor(PanasonicHeatpumpEntity* sensor) { extra_sensors_.push_back(sensor); } + bool get_uart_client_timeout_exceeded() { + return this->uart_client_timeout_exceeded_; + } protected: // options variables @@ -133,6 +136,7 @@ class PanasonicHeatpumpComponent : public PollingComponent, public uart::UARTDev bool response_receiving_{false}; bool request_receiving_{false}; bool send_extra_request_{false}; + bool uart_client_timeout_exceeded_{false}; LoopState loop_state_{LoopState::RESTART_LOOP}; RequestType next_request_{RequestType::INITIAL}; ResponseType current_response_{ResponseType::UNKNOWN};