diff --git a/esphome/components/sntp/sntp_component.h b/esphome/components/sntp/sntp_component.h index de40faa259..8f2e411c18 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: - SNTPComponent(std::array servers) : servers_(servers) {} + SNTPComponent(const std::array &servers) : servers_(servers) {} void setup() override; void dump_config() override;