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 59eaad7..d5687ee 100644 --- a/components/panasonic_heatpump/binary_sensor/panasonic_heatpump_binary_sensor.cpp +++ b/components/panasonic_heatpump/binary_sensor/panasonic_heatpump_binary_sensor.cpp @@ -16,7 +16,7 @@ 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(); + new_state = this->parent_->get_uart_client_timeout_exceeded(); if (this->has_state() && this->state == new_state) return; break;