diff --git a/esphome/components/mdns/mdns_component.cpp b/esphome/components/mdns/mdns_component.cpp index a3ffd7722e..6a4a89c815 100644 --- a/esphome/components/mdns/mdns_component.cpp +++ b/esphome/components/mdns/mdns_component.cpp @@ -126,10 +126,7 @@ void MDNSComponent::dump_config() { } } -std::vector MDNSComponent::get_services() { - return this->services_; -} - +std::vector MDNSComponent::get_services() { return this->services_; } } // namespace mdns } // namespace esphome diff --git a/esphome/components/openthread/openthread.cpp b/esphome/components/openthread/openthread.cpp index 1fe3b63826..834eb92a57 100644 --- a/esphome/components/openthread/openthread.cpp +++ b/esphome/components/openthread/openthread.cpp @@ -1,8 +1,6 @@ #include "openthread.h" -#ifdef USE_ESP_IDF -#include "openthread_esp.h" -#else +#ifndef USE_ESP_IDF #error "OpenThread is not supported on this platform" #endif diff --git a/esphome/components/openthread/openthread_esp.cpp b/esphome/components/openthread/openthread_esp.cpp index abc10330e8..9bdb4fcee2 100644 --- a/esphome/components/openthread/openthread_esp.cpp +++ b/esphome/components/openthread/openthread_esp.cpp @@ -1,5 +1,4 @@ // #ifdef USE_ESP_IDF -#include "openthread_esp.h" #include "openthread.h" #include diff --git a/esphome/components/openthread/openthread_esp.h b/esphome/components/openthread/openthread_esp.h deleted file mode 100644 index 6f70f09bee..0000000000 --- a/esphome/components/openthread/openthread_esp.h +++ /dev/null @@ -1 +0,0 @@ -#pragma once