From 752332750214e5a3c18bce81cda70dea5b1ffb70 Mon Sep 17 00:00:00 2001 From: Anton Sergunov Date: Fri, 7 Jun 2024 15:23:14 +0000 Subject: [PATCH] Replace `sntp_enabled` with `esp_sntp_enabled` --- esphome/components/sntp/sntp_component.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/sntp/sntp_component.cpp b/esphome/components/sntp/sntp_component.cpp index bedb157e6f..a6342c2dbb 100644 --- a/esphome/components/sntp/sntp_component.cpp +++ b/esphome/components/sntp/sntp_component.cpp @@ -70,7 +70,7 @@ void SNTPComponent::set_servers(const std::string &server_1, const std::string & } void SNTPComponent::update() { // force resync - if (sntp_enabled()) { + if (esp_sntp_enabled()) { #if defined(USE_ESP_IDF) ESP_LOGD(TAG, "Force resync"); sntp_restart();