mirror of
https://github.com/esphome/esphome.git
synced 2026-10-14 10:12:52 +00:00
Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: J. Nick Koston <nick@home-assistant.io>
15 lines
617 B
Python
15 lines
617 B
Python
from esphome.components import remote_base
|
|
from esphome.types import ConfigType
|
|
from tests.testing_helpers import ComponentManifestOverride
|
|
|
|
|
|
def override_manifest(manifest: ComponentManifestOverride) -> None:
|
|
# The harness walks the component manifest, not the climate platform, so declare its auto-load here
|
|
manifest.auto_load = ["climate_ir", "climate"]
|
|
|
|
async def to_code_testing(config: ConfigType) -> None:
|
|
# The platform's to_code never runs here; without this request remote_base drops aeha_protocol.cpp
|
|
remote_base.request_protocol("aeha")
|
|
|
|
manifest.to_code = to_code_testing
|