diff --git a/esphome/components/espnow/espnow.cpp b/esphome/components/espnow/espnow.cpp index 6cde57a591..7ae6533daa 100644 --- a/esphome/components/espnow/espnow.cpp +++ b/esphome/components/espnow/espnow.cpp @@ -135,14 +135,14 @@ void ESPNowComponent::setup() { err = esp_now_register_recv_cb(ESPNowComponent::on_data_received); if (err != ESP_OK) { - ESP_LOGE("esp_now_register_recv_cb failed: %s", esp_err_to_name(err)); + ESP_LOGE(TAG, "esp_now_register_recv_cb failed: %s", esp_err_to_name(err)); this->mark_failed(); return; } err = esp_now_register_send_cb(ESPNowComponent::on_data_sent); if (err != ESP_OK) { - ESP_LOGE("esp_now_register_send_cb failed: %s", esp_err_to_name(err)); + ESP_LOGE(TAG, "esp_now_register_send_cb failed: %s", esp_err_to_name(err)); this->mark_failed(); return; } diff --git a/esphome/components/espnow/espnow_packet.h b/esphome/components/espnow/espnow_packet.h index 93d17f9040..badbc0d10b 100644 --- a/esphome/components/espnow/espnow_packet.h +++ b/esphome/components/espnow/espnow_packet.h @@ -2,19 +2,10 @@ #if defined(USE_ESP32) -#include "esphome/core/automation.h" -#include "esphome/core/component.h" #include "esphome/core/helpers.h" -#include "esphome/core/log.h" -#include #include "esp_crc.h" -#include -#include -#include -#include - namespace esphome { namespace espnow {