1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-06 05:12:21 +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,4 +1,5 @@
#if defined(USE_ESP8266) && defined(USE_ARDUINO)
#include "esphome/core/defines.h"
#if defined(USE_ESP8266) && defined(USE_ARDUINO) && defined(USE_MDNS)
#include <ESP8266mDNS.h>
#include "esphome/components/network/ip_address.h"