mirror of
https://github.com/esphome/esphome.git
synced 2026-10-20 13:06:45 +00:00
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: J. Nick Koston <nick@home-assistant.io>
18 lines
787 B
Python
18 lines
787 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)
|
|
# The gamma table and its stored gamma are behind this define
|
|
cg.add_define("USE_LIGHT_GAMMA_LUT")
|
|
# The current estimate and limit of addressable lights
|
|
cg.add_define("USE_LIGHT_POWER_ESTIMATION")
|
|
|
|
manifest.to_code = to_code_testing
|
|
manifest.dependencies = manifest.dependencies + ["json"]
|