1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-17 09:13:45 +01:00

[mdns] Conditionally compile extra services to reduce flash usage (#10129)

This commit is contained in:
J. Nick Koston
2025-08-07 14:32:35 -10:00
committed by GitHub
parent c4d1b1317a
commit 76fd104fb6
3 changed files with 9 additions and 0 deletions

View File

@@ -93,6 +93,9 @@ async def to_code(config):
var = cg.new_Pvariable(config[CONF_ID])
await cg.register_component(var, config)
if config[CONF_SERVICES]:
cg.add_define("USE_MDNS_EXTRA_SERVICES")
for service in config[CONF_SERVICES]:
txt = [
cg.StructInitializer(