mirror of
https://github.com/esphome/esphome.git
synced 2026-10-14 10:12:52 +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@home-assistant.io> Signed-off-by: Petr Helebrant <petr@helebrant.cz>
16 lines
662 B
Python
16 lines
662 B
Python
import esphome.codegen as cg
|
|
from tests.testing_helpers import ComponentManifestOverride
|
|
|
|
|
|
def override_manifest(manifest: ComponentManifestOverride) -> None:
|
|
# The harness walks dependencies from the component manifest, not from the
|
|
# climate platform, so declare the platform's auto-load here. Otherwise the
|
|
# transmitter's code generation runs and the host build cannot link it.
|
|
manifest.auto_load = ["climate_ir", "climate"]
|
|
|
|
async def to_code_testing(config):
|
|
# on_receive decodes the generic frame through the shared protocol class
|
|
cg.add_define("USE_REMOTE_PROTOCOL_TOSHIBA_AC")
|
|
|
|
manifest.to_code = to_code_testing
|