1
0
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:
Markus
2024-06-25 10:05:37 +02:00
committed by GitHub
parent 8a25bedaf9
commit c9a0daf4b6
8 changed files with 19 additions and 10 deletions

View File

@@ -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