Files
esphome/tests/components/light/__init__.py
T
85724892cf [light] Add power estimation and current limiting for addressable LED strips (#15348)
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>
2026-10-18 08:08:31 -10:00

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"]