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_);