mirror of
https://github.com/esphome/esphome.git
synced 2025-10-16 00:33:54 +01:00
[mdns] Conditionally compile extra services to reduce flash usage (#10129)
This commit is contained in:
@@ -104,7 +104,9 @@ void MDNSComponent::compile_records_() {
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef USE_MDNS_EXTRA_SERVICES
|
||||
this->services_.insert(this->services_.end(), this->services_extra_.begin(), this->services_extra_.end());
|
||||
#endif
|
||||
|
||||
if (this->services_.empty()) {
|
||||
// Publish "http" service if not using native API
|
||||
|
Reference in New Issue
Block a user