diff --git a/esphome/components/espnow/espnow.cpp b/esphome/components/espnow/espnow.cpp index 0babee645b..6cde57a591 100644 --- a/esphome/components/espnow/espnow.cpp +++ b/esphome/components/espnow/espnow.cpp @@ -102,7 +102,7 @@ void ESPNowComponent::setup() { ESP_LOGI(TAG, "Setting up ESP-NOW..."); #ifdef USE_WIFI - wifi::global_wifi_component.disable(); + wifi::global_wifi_component->disable(); #else // Set device as a Wi-Fi Station esp_event_loop_create_default();