Key light_json_schema.cpp on mqtt or web_server instead of json

This commit is contained in:
J. Nick Koston
2026-08-23 10:11:30 -05:00
parent 28b6eaaebf
commit 854f052302
+3 -3
View File
@@ -560,8 +560,8 @@ async def to_code(config):
cg.add_global(light_ns.using)
# light_json_schema.cpp is fully #ifdef'd on USE_JSON; only mqtt and
# web_server use it.
# light_json_schema.cpp is only used by mqtt and web_server, which both
# auto load json; USE_JSON alone is too broad since other components load it.
FILTER_SOURCE_FILES = filter_source_files_from_defines(
{"light_json_schema.cpp": "USE_JSON"}
{"light_json_schema.cpp": ("USE_MQTT", "USE_WEBSERVER")}
)