1
0
mirror of https://github.com/esphome/esphome.git synced 2025-01-03 18:38:07 +01:00

Increase SNTP setup priority ()

This commit is contained in:
Simone Rossetto 2023-06-07 00:38:18 +02:00 committed by GitHub
parent 6b00622329
commit d1253922c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ class SNTPComponent : public time::RealTimeClock {
this->server_2_ = server_2;
this->server_3_ = server_3;
}
float get_setup_priority() const override { return setup_priority::AFTER_WIFI; }
float get_setup_priority() const override { return setup_priority::BEFORE_CONNECTION; }
void update() override;
void loop() override;