mirror of
https://github.com/esphome/esphome.git
synced 2025-10-15 16:23:48 +01:00
Do not build mDNS when mDNS is disabled via yaml (#6979)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "mdns_component.h"
|
||||
#include "esphome/core/defines.h"
|
||||
#ifdef USE_MDNS
|
||||
#include "mdns_component.h"
|
||||
#include "esphome/core/version.h"
|
||||
#include "esphome/core/application.h"
|
||||
#include "esphome/core/log.h"
|
||||
@@ -125,3 +126,4 @@ void MDNSComponent::dump_config() {
|
||||
|
||||
} // namespace mdns
|
||||
} // namespace esphome
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user