From 7e308bb83df7f726f6f14f1fae712cbc1bb32c6b Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 24 Sep 2026 14:58:54 +0100 Subject: [PATCH] [tests] Define USE_WEBSERVER_PORT in the light unit test override (#19584) --- tests/components/light/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/components/light/__init__.py b/tests/components/light/__init__.py index 219b61dbf5..d5cdb70c9c 100644 --- a/tests/components/light/__init__.py +++ b/tests/components/light/__init__.py @@ -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"]