mirror of
https://github.com/esphome/esphome.git
synced 2026-09-28 15:30:21 +00:00
14 lines
557 B
Python
14 lines
557 B
Python
import esphome.codegen as cg
|
|
from tests.testing_helpers import ComponentManifestOverride
|
|
|
|
|
|
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"]
|