[tests] Define USE_WEBSERVER_PORT in the light unit test override (#19584)

This commit is contained in:
J. Nick Koston
2026-09-24 14:58:54 +01:00
committed by GitHub
parent 68235f34c5
commit 7e308bb83d
+2
View File
@@ -6,6 +6,8 @@ def override_manifest(manifest: ComponentManifestOverride) -> None:
# Enables light_json_schema.cpp without USE_MQTT, which pulls mqtt code into core/util.cpp
async def to_code_testing(config):
cg.add_define("USE_WEBSERVER")
# api_connection.cpp reports the port whenever USE_WEBSERVER is set
cg.add_define("USE_WEBSERVER_PORT", 80)
manifest.to_code = to_code_testing
manifest.dependencies = manifest.dependencies + ["json"]