diff --git a/esphome/components/sntp/sntp_component.h b/esphome/components/sntp/sntp_component.h index 74c342a38a..de40faa259 100644 --- a/esphome/components/sntp/sntp_component.h +++ b/esphome/components/sntp/sntp_component.h @@ -18,7 +18,7 @@ namespace sntp { /// \see https://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html class SNTPComponent : public time::RealTimeClock { public: - template SNTPComponent(Args... servers) : servers_{servers...} {} + SNTPComponent(std::array servers) : servers_(servers) {} void setup() override; void dump_config() override;