mirror of
https://github.com/esphome/esphome.git
synced 2024-11-21 22:48:10 +01:00
Fix prometheus has wrong setup priority (#1211)
Fixes https://github.com/esphome/issues/issues/1377
This commit is contained in:
parent
b270ff335d
commit
4a0067a2c5
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue