From 96c12162075796b64e56d292fcbcb3bbc31f0d39 Mon Sep 17 00:00:00 2001 From: ElVit <54866762+ElVit@users.noreply.github.com> Date: Mon, 8 Dec 2025 10:17:46 +0100 Subject: [PATCH] Update panasonic_heatpump_binary_sensor.cpp --- .../binary_sensor/panasonic_heatpump_binary_sensor.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/panasonic_heatpump/binary_sensor/panasonic_heatpump_binary_sensor.cpp b/components/panasonic_heatpump/binary_sensor/panasonic_heatpump_binary_sensor.cpp index a3f5992..3220ad8 100644 --- a/components/panasonic_heatpump/binary_sensor/panasonic_heatpump_binary_sensor.cpp +++ b/components/panasonic_heatpump/binary_sensor/panasonic_heatpump_binary_sensor.cpp @@ -15,6 +15,11 @@ void PanasonicHeatpumpBinarySensor::publish_new_state(const std::vector bool new_state; switch (this->id_) { + case BinarySensorIds::CONF_UART_CLIENT_TIMED_OUT: + new_state = this->parent()->get_uart_client_timeout_exceeded(); + if (this->has_state() && this->state == new_state) + return; + break; case BinarySensorIds::CONF_TOP0: new_state = PanasonicDecode::getBinaryState(PanasonicDecode::getBit7and8(data[4])); if (this->has_state() && this->state == new_state)