mirror of
https://github.com/esphome/esphome.git
synced 2025-03-13 14:18:14 +00:00
Fix prometheus has wrong setup priority (#1211)
Fixes https://github.com/esphome/issues/issues/1377
This commit is contained in:
parent
87f1ffec05
commit
2d50ecbecf
@ -26,6 +26,10 @@ class PrometheusHandler : public AsyncWebHandler, public Component {
|
||||
this->base_->init();
|
||||
this->base_->add_handler(this);
|
||||
}
|
||||
float get_setup_priority() const override {
|
||||
// After WiFi
|
||||
return setup_priority::WIFI - 1.0f;
|
||||
}
|
||||
|
||||
protected:
|
||||
#ifdef USE_SENSOR
|
||||
|
Loading…
x
Reference in New Issue
Block a user