mirror of
https://github.com/esphome/esphome.git
synced 2025-01-03 18:38:07 +01:00
Increase SNTP setup priority (#4917)
This commit is contained in:
parent
6b00622329
commit
d1253922c3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user