From 2d64411a659da4b0422bc69cf5207b213b518b9c Mon Sep 17 00:00:00 2001 From: Guido Schreuder Date: Mon, 19 Feb 2024 23:40:43 +0100 Subject: [PATCH] another clang issue --- esphome/components/ebus/ebus_component.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/esphome/components/ebus/ebus_component.cpp b/esphome/components/ebus/ebus_component.cpp index 8fe4cb0095..b45ef39a38 100644 --- a/esphome/components/ebus/ebus_component.cpp +++ b/esphome/components/ebus/ebus_component.cpp @@ -1,6 +1,8 @@ #include "ebus_component.h" +#include "esphome/core/helpers.h" + namespace esphome { namespace ebus { @@ -49,7 +51,7 @@ void EbusComponent::setup_queues_() { this->command_queue_ = xQueueCreate(this->command_queue_size_, sizeof(Telegram)); } void EbusComponent::setup_ebus_() { - this->ebus_ = std::unique_ptr(new Ebus()); + this->ebus_ = make_unique(); this->ebus_->set_primary_address(this->primary_address_); this->ebus_->set_max_tries(this->max_tries_); this->ebus_->set_max_lock_counter(this->max_lock_counter_);