1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-10 13:53:49 +01:00
This commit is contained in:
J. Nick Koston
2025-10-01 23:34:12 +02:00
parent 86bfedc30e
commit 15ca069d58

View File

@@ -39,7 +39,7 @@ class MDNSComponent : public Component {
float get_setup_priority() const override { return setup_priority::AFTER_CONNECTION; }
#ifdef USE_MDNS_EXTRA_SERVICES
void add_extra_service(MDNSService service) { this->services_.push_back(std::move(service)); }
void add_extra_service(MDNSService service) { this->services_[this->services_.count()++] = std::move(service); }
#endif
const StaticVector<MDNSService, MDNS_SERVICE_COUNT> &get_services() const { return this->services_; }